Closed Thread Icon

Preserved Topic: php - shrinking images (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21160" title="Pages that link to Preserved Topic: php - shrinking images (Page 1 of 1)" rel="nofollow" >Preserved Topic: php - shrinking images <span class="small">(Page 1 of 1)</span>\

 
maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted 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.

Maninacan Cell #471
behmer

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-04-2002 05:41

Photoshop's batch processing may be the most convenient solution in this case.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-04-2002 06:25

See Doc's thread



.:[ Never resist a perfect moment ]:.

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted posted 09-04-2002 06:33

thanks, didn't know about that, worked great.

Maninacan Cell #471
behmer

maninacan
Paranoid (IV) Inmate

From: Seattle, WA, USA
Insane since: Oct 2001

posted 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.

Maninacan Cell #471
behmer

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted 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.

Your pal, -doc-

« BackwardsOnwards »

Show Forum Drop Down Menu