I get my images form a webserver. These images may vary in dimensions (height and width).
I want to dynamically resize my image controls (server side) to ensure the images fits on the page properly. This means I want to resize images if they have a width greater than 250 pixels (without losing the height-width ratio).
So how can I get the height and width of an image which I load from the server? And does anyone have of the shelf code on how to maintain the ratio?
please mark answers as Answered and please post back solutions when you figure stuff out.
fight Google domination, use search.live.com