TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Blurred Images Are Everywhere

60 pointsby wx196over 7 years ago

19 comments

AndrewStephensover 7 years ago
This guy is not wrong, but on my site I decided that for photographs it probably doesn&#x27;t matter much and just provide a single image resolution. Chrome does a terrible job of resizing images but even it is acceptable. Maybe if you run a high-end stock-photo site you have other opinions, but I don&#x27;t.<p>Logos and illustrations are a different matter, but the answer is not to turn on an obscure rendering option via css. You either supply images in all sizes your site requires, or use the format that was explicitly designed for such things: SVG.
评论 #15705398 未加载
iainmerrickover 7 years ago
The key observation is a) responsive web pages often use large images and rely on the browser to scale them down; b) browsers do a bad job of resizing compared to e.g. Photoshop.<p>This is true but I don&#x27;t think it&#x27;s a very big problem. Most recent phones have ridiculous high screen resolutions so the blurring is completely invisible. Desktop PCs tend to have large screens, so not much downscaling is needed, and high-DPI screens are getting more common there too.<p>It&#x27;s definitely a good idea to use SVGs for line art, if possible. And browsers ought to use better resizing filters, it&#x27;s not exactly rocket science.<p>But with a high-DPI screen, even low-quality resizing looks fine.
评论 #15705289 未加载
kinkrtyavimoodhover 7 years ago
Make sure you are reading this blog on a phone or change the width of your browser to resemble that of a phone, otherwise you won&#x27;t be able to see what he is trying to point out. On normal laptop screen size, the &#x27;original size browser resized&#x27; ones are sharper than Photoshop resized ones.
评论 #15704715 未加载
评论 #15706726 未加载
cmgover 7 years ago
I find it very clever that the author is using characters in the Unicode &quot;Mathematical Double-Struck Small&quot; range for the title, so that it appears blurry in the browser title bar.
评论 #15709850 未加载
评论 #15707028 未加载
ambrositeover 7 years ago
I&#x27;m not seeing much difference in the photos, but with the logos it is certainly noticeable and in some cases even affects readability.
评论 #15705007 未加载
ricardobeatover 7 years ago
This is the case since late 2015, and they haven&#x27;t budged since. If you want to provide a @2x image to look nice on hi-dpi, or simple responsive elements, you are out of luck. It worked fine before, I really don&#x27;t get why this is being ignored. At my job we went so far as experimenting with image-rendering: optimize-contrast, but it doesn&#x27;t work well for logos &#x2F; solid shapes, so we have to live with blurry crap in the most popular browser.<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=562162" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=562162</a>
评论 #15710657 未加载
KenanSulaymanover 7 years ago
I think that everything other than complex images should be SVGs, especially logos. They don&#x27;t only look great, they also make life a lot easier (e.g. sizing).
评论 #15704860 未加载
owninghomeover 7 years ago
I am so happy I can’t tell the difference with most of those images. That would drive me nuts!
评论 #15704807 未加载
ameliusover 7 years ago
&gt; image-rendering: -webkit-optimize-contrast;<p>So what does that do, algorithmically speaking?<p>(If I search for it, I get lots of pages saying the property is broken.)
thrownaway954over 7 years ago
I think this is a non issue for most visitors and sites. I can see this being a problem for photography sites and enthusiasts, however, for the average Joe like myself, our eyes have not been trained enough to &quot;look&quot; for the imperfections the author is describing.
qumeover 7 years ago
&quot;What developers should do right now is to turn on webkit auto-sharping property&quot;<p>No, no please don&#x27;t take this advise.<p>This is a good start on an important subject, but it&#x27;s not that simple. The aliasing on line art type images is horrible, even on the example on the page.
etametaover 7 years ago
A far more annoying blurring occurs when you <i>enlarge</i> pages because they were designed for small &#x2F; low resolution screens.<p>Currently I zoom most pages to 150% and bitmapped logos look horrible, even using the best possible algorithms in image processing software.
Cknight70over 7 years ago
This reminds me of another very noticeable issue Chrome used to have with hardware acceleration enabled for html5 videos. I ended up turning off hardware acceleration when they started forcing html5 on YouTube because it bugged me so much. <a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=351458" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=351458</a>
teddyhover 7 years ago
&gt; <i>I must admit that this problem is Chrome-only. IE renders much better</i> […] <i>Firefox has good rendering as well</i> […]
评论 #15705297 未加载
kristofferRover 7 years ago
Firefox 59.0a1 results on macOS, the difference is massive: <a href="https:&#x2F;&#x2F;kristofferr.com&#x2F;files&#x2F;screens&#x2F;Screenshot%202017-11-15_05-25-11_PM.png" rel="nofollow">https:&#x2F;&#x2F;kristofferr.com&#x2F;files&#x2F;screens&#x2F;Screenshot%202017-11-1...</a><p>Chrome looks basically the same, so I didn&#x27;t bother screengrabbing that.
评论 #15705037 未加载
评论 #15704994 未加载
mikejmoffittover 7 years ago
This is just a study of filtering algorithms. The author is just looking at Photoshop&#x27;s (default!) bicubic filtering, which emphasizes high-frequency detail content at the expense of accuracy. The browser examples are doing simple linear filtering.
nutjob123over 7 years ago
Who is resizing logos and artwork like this in photoshop? I would never resize a corporate logo like that. If I needed a .png in a specific size it would usually be rendered for web straight from the svg or AI file.
dsegoover 7 years ago
Safari does a good job I guess, or my eyesight is getting really bad.
omg_ketchupover 7 years ago
srcset + sizes, anyone?
评论 #15710672 未加载