|
You shouldn't be trying to size images dynamically - they already have a width and height intrinsic to the image and if you want to resize them from that you should use a graphics program to do so. Browsers are not designed to resize images and will make a mess of the image if you try to display it at anything other than its actual size.
So if you want to automatically resize images then use server side processing that calls a proper graphics routine to do it.
|