WebsiteBaker Community Forum

General Community => Off-Topic => Topic started by: Argos on March 25, 2009, 03:33:13 AM

Title: Neat trick to improve quality of visually resized images in IE
Post by: Argos on March 25, 2009, 03:33:13 AM
I stumbled upon a neat little trick to make IE scale images more smoothly. Of course it's far better to resize images in a graphical program, before uploading and using it. Or have a server function like GD do it for you. But if for some reason images are not 'really' resized, but only get changed dimensions in the HTML, you can use a simple CSS line to prevent all those jagged edges and artefacts in the result. Just add
Code: [Select]
img { -ms-interpolation-mode:bicubic; }to the stylesheet!

See http://www.joelonsoftware.com/items/2008/12/22.html