开发者

What's the performance impact of using bicubic interpolation in IE?

开发者 https://www.devze.com 2023-01-07 14:05 出处:网络
Everybody knows that IE7 sucks at scaling images. I just recently discovered the trick of using img { -ms-interpolation-mode: bicubic; } to force IE to use bicubic sampling when s开发者_JAVA百科caling

Everybody knows that IE7 sucks at scaling images. I just recently discovered the trick of using img { -ms-interpolation-mode: bicubic; } to force IE to use bicubic sampling when s开发者_JAVA百科caling images so that they look better. However, I was wondering if anyone knows the performance impact of using ms-interpolation-mode.


It will be slower than nearest-neighbor, but give you a better image. You should just time it and see if it matters.


I've used it before, and as long as you are not doing something to the image (fading it, etc.), anything that might use javascript in a loop that is processing the image, you should be fine. Some experiments I had done in processing the image (through a loop) found some significant performance issues.

Also, if you are doing 'a lot' of images on the page, that could be slow as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消