![]() Topic awaiting preservation: php Dynamic image resize to proportion (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
![]() 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 |
![]() 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..... |
![]() 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 |
![]() Hi C:\ |