IE6 image scaling with bicubic filter

Posted by thehuby on Stack Overflow See other posts from Stack Overflow or by thehuby
Published on 2009-11-03T11:59:21Z Indexed on 2010/05/08 10:18 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I have a project where I have to resize some images in the actual browser side.

IE8, FF3 et al all apply a filter to smooth the resizing of the image, so in these browsers everything looks good.

In IE7 I have applied the following fix which works great: -ms-interpolation-mode:bicubic;

In IE6 however I can only find references to the AlphaImage Filter (the same one used to enable alpha transparency on PNG files). However I can't find an example of how to use it, nor have I been able to get it working myself.

Can anyone provide me with an example? Preferably applied to actual img tags, though I could use background images if required.

MSDN link (for what its worth): http://msdn.microsoft.com/en-us/library/ms532969%28VS.85%29.aspx

The code I am using in my CSS is applied to the img, though I've tried applying it to the img container as well (with no effect):

#provider-list li img {
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="/image.gif", sizingMethod="scale");
}

A thousand thank you's in advance :)

Rick

© Stack Overflow or respective owner

Related posts about ie6

Related posts about image