Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blurry downscaled images in Chrome

I am using gravatars and it's rather often when I downscale them with css, and I believe Google Chrome used to do it properly until recently ( I may be wrong, not sure when exactly the problem started to occur ) but now, images get blurred when downscaled, and that happens only in Chrome, FF downscales pretty good. I tried using image-rendering but it doesn't solve the problem. Can someone give me a hint what is the best way to go about it?

The example can be found here, open it in Chrome and then in FF, it should be way more blurred in Chrome than in FF.

Thank you

like image 949
NoDisplayName Avatar asked Jun 19 '16 11:06

NoDisplayName


People also ask

Why are my images blurry in Chrome?

Many users have been reporting that sometimes Chrome looks blurry. To fix that, you just need to clear your cache and browsing data. Resetting the browser settings to default can also help with these types of issues.

Why are some images blurred on Google?

Google blurs license plates and the faces of people in order to maintain privacy. Recently, users discovered Google began blurring the faces of pets to protect owners as well.

Why are my Web images blurry?

Simple, the browser is trying to maintain the image aspect ratio based on the original size, resulting in a calculated height with a decimal value which in turn causes pixel compression, hence a blurry image.


1 Answers

I found the exact same issue on Mac: Firefox downscales the image really well, while Chrome makes it look blurry, which is very bad. I couldn't care less about rendering time or speed, I need the logo to look GOOD!

I found the following CSS rule fixing Chrome for Mac

image-rendering: -webkit-optimize-contrast; 
like image 169
pastullo Avatar answered Oct 02 '22 13:10

pastullo