Preserved Topic: php - shrinking images (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 09-04-2002 05:35
ok, so I want to write a php script to shrink images. Yes, you probably got that from the title. The reason I want to do this is cause I have about 50 pictures that my mom wants me to resize because they are 1600 by 1200 now because she took them with a digital camera. Anyways, I couldn't find any functions to do this so help me out if you can. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-04-2002 05:41
Photoshop's batch processing may be the most convenient solution in this case. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-04-2002 06:25
See Doc's thread |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 09-04-2002 06:33 |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 09-05-2002 05:11
um, bitdamaged it appeared to me as though doc's script did not actually change the image itself (which is what I wanted to do), but set the height and width attributes of the image tag to smaller than the actual image was. That's what I think anyways, I only gave it a quick lookover, please correct me if I'm wrong. But then again it doesn't matter so much as my problem is solved, but it would still be interesting to know if there actually was a way to do what i wanted with php. |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 09-05-2002 11:33
Actually, the whole point of my PHP/Imagemagick script was to do just what you said you wanted, use the server to process the images into smaller versions. (When you view the thumbnails, they call for the same image name, but from the directory ".minis". All of these images are created as needed using ImageMagick on the server.) Photoshop's batch processing wil do a nice job on this too, but of course, requires you to have Photoshop and know what you're doing. (And also be adept at FTP, etc...) I built the script for a client who needed a simpler approach. |