Im working on a photo gallery project of my own. Before I begin id like to say im not looking for premade scripts aka hotscripts.
Im using ImageMagick for all of my photo manipulation. Currently I have finished a script that will convert a single picture into a thumbnail and also add a watermark in the corner of the original image.
Now im stuck on how to do this to the entire directory of images.
I have an idea of how to do it but i cant seem to find the commands i need. right now for the script to work the image has to be in the same directory.
my current thumbs script is:
$image = "FileName.jpg";
$cmdthumb = 'convert -quality 65 -scale 80x80 '.$image.' THUMB.'.$image.' ';
exec($cmdthumb);
?>
and one other thing is how should i add this to my database (mysql). I know it would be someing in the nature that when the $image name is found that it would be added to the database along with its path. And when it is added to the database should i have all of the images in the same table (200,000+)? or should i have a sperate table per photoset?