Topic awaiting preservation: php Dynamic image resize to proportion (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
posted 12-20-2006 21:10
Was wondering if anyone had a simple way of resizing images on a given page but only if it is over a certain amount. code: <img src="http://mywebsite/thumb.php?src=image001.jpg&x=200&y=200&f=0" />
|
Maniac (V) Mad Scientist From: :morF |
posted 12-21-2006 09:42
Do you mean that you want to process the image file to actually resize it, or that you want to keep the image file the same, and have the browser put size constraints on it? |
Maniac (V) Inmate From: there...no..there..... |
posted 12-21-2006 13:23
I thought about doing it on the fly but, I think you are right. Just have it uploaded and the same script that uploads it, reads the image size, and makes a thumb nail in a different directory. I could just append the thumb nail so it would be something like, thmb_imageName.jpg. Store the original image name in the database and when I call it from the page, just add the *thmb* part to it. |
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 01-12-2007 09:08
Hi C:\ |