View Full Version : Image Size
Trance-formation
Oct 11th 2004, 10:33 pm
Is there any way of setting the code on a page so that I can use it to pull the image source from from a number of surces, standardise the width but still allow the height to be in proportion to the original? eg
<img src="thingy" height=200 width=originalwidth/(originalheight/200)>
?
Or would I need to write a little php script into the page?
mopacfan
Oct 12th 2004, 6:56 am
That would definitely have to be a server side script or a javascript application to do something like that.
TwisterMc
Oct 12th 2004, 7:20 am
do you know php? can you run php on your server? It could do that idea.
Trance-formation
Oct 12th 2004, 7:24 am
just found the getimagesize() which does exactly that... prob over.. thanks guys
Trance-formation
Oct 13th 2004, 5:03 am
do you know php? can you run php on your server? It could do that idea.
Karamba! getimagesize() works :)
(message to Owlcroft... just modifying your Freebie to fit my site style, and wanted to shrink the amazon pictures... works a treat :D )
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.