为什么Firefox在调整图像大小方面如此糟糕?

编程入门 行业动态 更新时间:2024-10-13 16:16:56
本文介绍了为什么Firefox在调整图像大小方面如此糟糕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在左边是原始PNG和右侧被版本使用减少到大约一半的一部开拓创新大小< IMG宽度和高度。请参阅[链接已移除]。

为什么在Firefox中调整大小的图像看起来很模糊。有没有什么我可以做的,而不需要改变图像文件。如果图像包含大量的数学或文本,模糊特别讨厌。

'的div类= h2_lin>解决方案

有一个长期bug bug票据与Bugzilla提交有关Firefox图像缩小。最好的解决办法是使用<$ $ $ $ b

最好的解决方法是使用 transform CSS属性将微小的旋转应用于问题图像并强制子像素呈现,详见 Ryan Wheale的答案。

On the left is the original PNG and on the right are versions reduced to roughly half the orignal size using <img width and height. See [Link removed].

Why does the resized image look so fuzzy in Firefox. Is there anything I can do about it without changing the image file. The fuzziness is particular annoying if the image contains large amounts of math or text.

解决方案

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.

更多推荐

为什么Firefox在调整图像大小方面如此糟糕?

本文发布于:2023-11-28 13:40:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:糟糕   图像   大小   Firefox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!