Also tested successfully in:
Known to fail in:
Unlikely to work in Internet Explorer
This page demonstrates a jQuery plugin which scales images to fit their parent container.
It is reliant on support for the CSS property max-width to prevent images from being enlarged beyond their native resolution. Resize your browser window to see the change.
For optimal image quality and minimised page weight nothing beats exporting your images to exactly the size they will display on the web page.