CliffLandin
Programmer
Is there a way to find out the height and width attributes of an image? I have a gallery page that displays images from a database. I want the user to be able to enter pictures of any size (within reason) and display them at maximum size if bigger or the correct size if smaller than the max size. Does that make sense? So I want to be able to get the height and width attributes from the image and then say
<img src='whatever' width=$width height=$height />
where $width is either = max. size or actual size.
ditto for $height.
When in doubt, go flat out!
<img src='whatever' width=$width height=$height />
where $width is either = max. size or actual size.
ditto for $height.
When in doubt, go flat out!