View Single Post
Old 03-07-2005, 07:52 AM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
Quote:
Originally Posted by sde
are you sure you need to resize them? or would just modifying the width and height attributes of the img tag work if the aspect was fine.

for example, i am pretty sure you can declare just one of the attributes and the other will scale with the aspect.

i.e. if you have an image that is 1024x768, .. you could use <img src=images/someimage.jpg width=800> and it should display a height of 600. ( i think )
Good god, no. Don't even suggest that, lest some newbie pick up on it and decide that it's a good way to shrink all the images displayed on their site. The original (usually huge) file is transfered, and the image is shrunk by the client, not a good way to do things on the web.
__________________
GitS
Belisarius is offline   Reply With Quote