How to prevent Chrome from blurring small images when zoomed in?

Why images are blurry on some screens?

For website, using pixel perfect images are as important as having good content and good SEO.


But after introduction of retina screens, it has been difficult to maintain the image quality on the website.

Same image on standard looks pixel perfect and on a retina screen it looks blurry.

The reason behind that is:

 

Apple’s retina screens have decoupled the actual pixels of the screen from the pixel dimensions of the image.

 

Prior to retina screens, an image loaded in a web browser that was 100px x 100px would take up exactly 100×100 screen pixels.

 

Retina screens (which is just Apple’s term for super-high-resolution screens) had a problem where if they rendered images and text at ‘actual pixel size’ everything would be way too small to be legible.

 

As such, retina screens attempt to render content at the same size as non-retina screens, but use more pixels to do so.

 

So for easy math, let’s say a retina screen is twice the resolution of a standard screen.

 

If you create a 100×100 image and view it on a normal screen, it will look sharp as each image pixel uses one screen pixel.

 

On a retina screen, however, that 100×100 image will take up 200×200 screen pixels. The browser translates the 100 virtual pixels into 200 real pixels.

 

To do so, it has to make up all the missing pixels via interpolation which causes the blur you see.

No more blurry images


Use the following different methods to prevent images from getting blurry.


There are various methods that we can implement. Try these and see which one works for you.

  1. The first fix is to make your images 200×200 actual pixels, then size them in your HTML or code to render at 100×100 pixels.On a normal screen, it will look the same. The extra pixels are just thrown away.

  But on a retina screen, it will now look sharp as each image pixel is now using    one screen pixel.

 

2. Add following CSS in your website to render sharp images-

				
					sharp { image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; -ms-interpolation-mode: nearest-neighbor;}
				
			

Above solutions are tried and tested and have been implemented by thousands of web designers. It has been working well for them. 


Try it and let us know if it worked for you.

One Response

Leave a Reply

Your email address will not be published. Required fields are marked *

Picture of Sahibjot Singh

Sahibjot Singh

Hey there! I'm Sahibjot Singh, and I've been on an exciting journey as a Web Designer/Developer and Email Automation expert for the past 12 years. It's been a fantastic ride filled with new challenges, and I've learned how to overcome various issues along the way.

One thing that's always been a part of my journey is the need to research and gather different puzzle pieces, using my coding knowledge to piece together solutions for a wide range of problems.

But here's the thing: I've realized that there are many business entrepreneurs and non-technical folks out there who don't have coding skills but often find themselves in similar situations.

So, what makes Unbouncehacks/Unbouncetips special? Well, it's not just a collection of scattered information. I've put together complete end-to-end solutions for the very problems I've encountered and that you might face in the future.

Plus, I keep this website updated with fresh tips and suggestions that have helped me excel in design and email marketing over the years. So, you're in for a treat with a treasure trove of knowledge! 🚀

Share:

Facebook
LinkedIn
Twitter
Skype
WhatsApp

Most Popular

Follow Us

Categories

Doing the best for email marketing? Still your domain can be black listed if you hit a spam trap, once.


Verify your contacts for FREE and make sure there are no spam traps or invalid emails. 

Read More

Related Posts

― Receive the latest articles
Subscribe To Our Newsletter

Get notified about new articles