|Posted: Mon, 2008-04-28 15:53|
I've been wondering about the possibility of having Gallery scan an upload directory for new items to add. Currently I add new photos by copying them from my digital camera to my server and then opening the admin console to use the add from local server option to get them to show up in the gallery. What I would like to do is simply put the files onto the server and have Gallery scan the directory and add the new items to the database, preferably run as a cron job. I know enough about shell scripting and imagemagick to put the photos where they need to go and do the resize operations automatically, but I'm not familiar enough with databases to automate the tasks of adding entries.
I've tried the galleryadd.pl script, and it worked great, provided I knew the ID of the album I wanted to add photos to and didn't want to create a new album. The problem is that I want to put each new set of photos into its own album. I didn't really get any help with that script, so I'm asking for help here.