• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Neat trick to improve quality of visually resized images in IE

Started by Argos, March 25, 2009, 03:33:13 AM  ( Read 8,426 times )

Argos

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
img { -ms-interpolation-mode:bicubic; }
to the stylesheet!

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

    \n\n