Image scaling causes poor quality in firefox/internet explorer but not chrome

前端 未结 10 1766
一个人的身影
一个人的身影 2020-11-27 03:44

See http://jsfiddle.net/aJ333/1/ in Chrome and then in either Firefox or Internet Explorer. The image is originally 120px, and I\'m scaling down to 28px, but it looks bad pr

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 04:14

    Your problem is that you are relying on the browser to resize your images. Browsers have notoriously poor image scaling algorithms, which will cause the ugly pixelization.

    You should resize your images in a graphics program first before you use them on the webpage.

    Also, you have a spelling mistake: it should say moz-crisp-edges; however, that won't help you in your case (because that resizing algorithm won't give you a high quality resize: https://developer.mozilla.org/En/CSS/Image-rendering)

提交回复
热议问题