Hi,
I use gallery2 a lot to host photos that I want to share out on my blog. I also use gThumb to organize all of my photos into catalogs and such. I currently store my photos on their own partition (RAID, plus rsync backup to a remote host), so I just use symlinks when I add photos to gallery. Right now, this is a very manual process, since my wife likes to use gThumb to build catalogs of photos and then I have to manually select the photos to add based on the catalog. The gThumb catalog file itself is a flat text file, and looks like:
# sort: none
"file:///home/photos/20081231%20Holidays/IMG_8215.JPG"
"file:///home/photos/20081231%20Holidays/IMG_8214.JPG"
"file:///home/photos/20081231%20Holidays/IMG_8212.JPG"
"file:///home/photos/20081231%20Holidays/IMG_8209.JPG"
"file:///home/photos/20081231%20Holidays/IMG_8208.JPG"
"file:///home/photos/20081231%20Holidays/IMG_8206.JPG"
...
What I would really like to be able to do is to either run a command to pull all of the images into a new gallery album (with appropriate switches to control behavior), or at least have a command that could add images individually to an album and I can script that up myself. I haven't been able to find anything out there that would do this. I just thought that having a nice interface for automating album management would open up some nice possibilities for integration with other tools. I can do scripting and PHP, so if someone could at least point me in the right direction (most appropriate hooks for adding images, etc) I could look into doing this myself.
Thanks,
Derek
Posts: 22888
Galleryadd.pl:
http://codex.gallery2.org/Other_Clients#galleryadd.pl I don't think it does sym links like you want to do though.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thanks, floridave! Your response lead me to the solution of my own python problem.
Posts: 5
Thanks. Symlinks are definitely important to me since I have many, many gigs of photos. I'm guessing this is going to involve some hackery, unfortunately. I wonder if I can fake the "local server" add photos function by tweaking and running the PHP from the command line...
Posts: 16503
You might want to take a look at this too:
http://gallery.menalto.com/node/81010#comment-284733
Though I've only started playing with gthumb, f-stop, and a few others, I could have sworn I saw an option in gthumb to import directly into Gallery, but maybe that was f-stop or some other image manager I've been playing with on Linux.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here