Why is Firefox so bad at resizing images?

前端 未结 7 873
忘掉有多难
忘掉有多难 2020-12-02 14:19

On the left is the original PNG and on the right are versions reduced to roughly half the orignal size using and height. See [Link re

7条回答
  •  再見小時候
    2020-12-02 14:56

    There is a longstanding bug ticket filed in Bugzilla related to Firefox image downscaling. You might like to keep an eye on the ticket to track its eventual resolution or contribute a patch yourself if you feel able to.

    The best workaround is to use the transform CSS property to apply a tiny rotation to the problem image and force sub-pixel rendering, as detailed in Ryan Wheale's answer.

提交回复
热议问题