Can perl manipulate images? Specifically, could I make a perl script where people upload images into a database and then the database script automatically renames the image and makes a corresponding thumbnail?
P.S. I should have mentioned that I ask about Perl because that's the only language I (kind of) know. I could probably work with something else, but I'm basically clueless on anything except Perl and I don't, obviously, know that too well.
Checkout imagemagick/perlmagick. I'm using this right now to create thumbnails and automatically tag information from a form right on to the image (like submitter info).
Only problem I've seen is between different version of perl and/or imagemagick. For some reason when I moved the same perl program to another machine the tagging jumped by about 10 pixel in relation to the image. Spent a long time trying to figure it out... and failed. I ended up just added code to change the positioning by 10 pixels. :)
I've used the Perl bindings for ImageMagick to create thumbnails with great success. You can set the width and height max for each one (120px works well by the way). It is very fast and only took about 30 minutes to index and thumbnail 10,000 images on my windows box (including the database calls and copying files from a staging area to the live server).
A former coworker of mine uses ImageMagick in his photoblog business (mod_perl) and loves it. Think of having the basics of Photoshop (or Elements I should say) accessible via a webpage to get an idea.
If you would like snippets I am sure I could dig something up in this myriad of files I call a site, just let me know.
I can't comment on any php solutions since I'm still of the school that php isn't a solution. (Sorry, not a flame, just a small opinion).