johnstires
11-15-2006, 12:37 AM
I have an html question about resizing an image. How do you resize an image only if it's too big.
For instance if I have an image that is 500px wide and I want to down size it to 450px wide I can write something like this:
<embed src="$filename"
width=450>
</embed>
However if I have an image come in at 200px I do not want it resized to 450px.
How would I write it so that only images over 450px would get resized but images under 450px would stay the same.
Thanks in advanced!
For instance if I have an image that is 500px wide and I want to down size it to 450px wide I can write something like this:
<embed src="$filename"
width=450>
</embed>
However if I have an image come in at 200px I do not want it resized to 450px.
How would I write it so that only images over 450px would get resized but images under 450px would stay the same.
Thanks in advanced!