is there a way with php to make a program that resizes and renames images? i have a website i do and on an average every month i have 75 to 125 images i have to resize and rename to a certain naming convention. i use a ftp program to upload the images. just wondering if that is possible.
Sure - it's definitely possible but you must have the GD library installed on your server. To find out if you have, make this small script, upload it and call it. <?php phpinfo(); ?> PHP: What you're looking for in the output is anything mentioning GD. EDIT: Just checked mine - once you have the info in your browser CTRL+F and search for "gd support" and it should say "enabled" in a small box titled "GD"
Now you know that, there's plenty of scripts out there that will go through a folder selecting all the images and resize them.
That all depends on the script you find - usually they'll just take the files, resize them and write out with something added to the filename (like prefixing "tn_" for example)
mediachance.com/free/thumber.htm Look on the right "Oscar's JPEG Thumb-Maker" This will run on your PC - you can get it to go through a folder (and optional subfolders) and resize the images so you can upload them.
well the main thing i am need is the renaming part. bc i can use photoshop and run an automated deal and resize em all like that.
What sort of renaming format are you looking at? I can knock you up a script to rename a load of files on your server no problem but I'll have to write it tomorrow - 11:30pm here and I'll be heading off to bed soon.
If you are already doing the image resizing on your windows box then there are several applications that you can use to do the whole job. Depending on your naming conventions and if it is something that can be put into a template and resize and rename all your images before uploading - probably easier than doing it server side - as the resized images will be smaller to upload. Tell us more about how you want to rename the images.