English 中文(简体)
• 降低 image或伊埃的结果
原标题:Make Firefox image scaling down similar to the results in Chrome or IE

左边是原有的PNG,右边是使用<代码>width和的原始尺寸的约一半。

为什么再造的形象看上象吗? 在不改变形象档案的情况下,我能做什么? 如果图像含有大量的数学或文字,则烟zzi就特别令人厌恶。

“entergraph

最佳回答
问题回答

I think your answer is in the link from above https://developer.mozilla.org/En/CSS/Image-rendering: Currently auto and optimizeQuality are equal by default, both result in bilinear resampling. default value IE8+: bicubic (high quality)

Next see: http://www.codinghorror.com/blog/2007/07/better-image-resizing.html When making an image smaller, use bicubic, which has a natural sharpening effect. You want to emphasize the data that remains in the new, smaller image after discarding all that extra detail from the original image.

我可以考虑几个可能的工作领域,但两者都不简单:

  1. Resize the image on the server. Either serve it up at half size, and allow Firefox to scale it up to full (which presumably it will be ok at), or have different URLs for the different sizes of image.
  2. You may be able to make this work in the browser with plugins (but the example I found doesn t actually do what you need, so I ve removed it).

TL;DR:图像推广不大可能很快固定下来。 大约在任何地方。

Longer version:

Eris Brasseur has a page that deals nicely with the broader question "Why is just about any image scaling software so bad?"

http://www.ericbrasseur.org/gamma.html

Since W3C s position on this matter is roughly that it s better to have an incorrect but equally incorrect implementation everywhere, they shun any proper dealing with Gamma (which would complicate matters slightly). Thus anyone accustomed to web standards is likely to continue ignoring Gamma, leading to the effects described by Eric and in this thread. This ensures that even downscaling is far from being well-defined, as Jeff Atwood puts it in an Article linked in another answer.

在这种环境中,像Lanczos thrive 这样的方法,如果他们声称自己厌恶,即使执行不当,其效果也相当好。

In other words, browsers are the software equivalent of McDonald s burgers, and that fact will stay. Its implications need not, but the odds are skewed.

现在(2017年)两年前就关闭了。 短期试验:

<>strong>FF, 50%:

“FF,

<>strong>FF, 25%:

“FF,

解决这一问题的办法是,把图像编辑的原始形象与理想规模相去甚远,并使用图像,而不在风格上界定其宽度和高度。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?