Can anyone provide a snippet (that at least would get me in the right direction) so I can have a user submit an image through a form, generate a thumbnail, then store the thumbnail and full-size image in a mysql db? And how do I then pull the image from the db to display it? I think I kinda know how to do the latter, but my current form for image submission only passes the path to the image on the user's drive, not the image itself. And I don't know how to make the thumbnail with imagecopyresampled.
Is imagecopyresampled comparable to imagemagick resampling? I have a script I use now that uses imagemagick and the quality is great, but I don't know how to use imagemagick to create a thumbnail without storing it to a file (I need it returned to a variable that I can put in the db, not written to a file). Also, I am working hard to make my script very portable, so I'd prefer to keep server requirements at a minimum... If I can do this without imagemagick and the quality will still be good, then that just makes it that much more portable.
I'm almost finished and I will soon be sharing. I think you will all really like my new gallery scripts... LOTS of room for growth, LOTS of options for user restrictions/administration, etc.