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

情到浓时终转凉″ 提交于 2019-12-24 05:43:09

问题


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 scaling images so that they look better. However, I was wondering if anyone knows the performance impact of using ms-interpolation-mode.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/3251805/whats-the-performance-impact-of-using-bicubic-interpolation-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!