Techniques Used To Optimize Images for Retina Displays

February 12, 2013 Alex Zaymund Tips&Tricks
Techniques Used To Optimize Images for Retina Displays

In the era of modern technologies screens with high pixel density are becoming more and more widespread. Such products as Retinа Macbook Pro and iPhone 5 are equipped with retina displays, and this is gradually becoming an actual concern for developers as well. Currently there are available several techniques used to optimize images for Retina displays and all of them have their pluses and minuses.  Let me describe some of them which to my opinion are most appropriate and useful.

Techniques used to optimize images for Retina displays

First, let’s try to improve CSS images. In order to do that, take an image from the CONTACT block.

When you open this page in an iPhone, you will see that the image is not very sharp.  To get a good quality image we need to cut down twice the original image size using CSS and HTML parameters. In this case, the pixel density will increase and thus the quality of the image gets improved.

We can apply this method to our images now

and with the help of CSS styles can specify high density images for the displays which support Retina characteristics.

Techniques used to optimize images for Retina displays

Common displays:

Retina displays:

Techniques used to optimize images for Retina displaysNow, we need to prepare all images which are used in the design. I cannot call it to be the most pleasant task especially if using the icon buttons. But not if we use the font icons. In this case, our buttons will look much better compared to the images which have not been specially prepared for that.

If we want to improve the quality of images for our product items, then we can apply this technology using the Retinа module developed by Denis Yurevich. When specifying the size settings under the Preferences – Images this module cuts down your image sizes twice compared to their parameters in the html.

Techniques used to optimize images for Retina displays

For instance, we have two images in the ‘New Products‘ right hand sidebar. They have the following properties: width=”58″ and height=”58″. But with the help of the module the original size is 116 x 116 which is twice as large.  This can be well demonstrated on small images.  This method will work for all browsers and phones, but the quality of the image only benefits from that.   You can see this for yourselves. But don’t forget, that if you are configuring images for product items then you need to make the image size at least two times larger than the size displayed on the website. And then you will be able to surprise your customers with modern gadgets.



Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *