Mobile app version of vmapp.org
Login or Join
Harper654

: How to optimize JPEGs for retina displays? I am trying to optimize a set of JPEGs photos (5120 x 2880 px) that will be used on the web for retina screens. The objective is to reduce file

@Harper654

Posted in: #Gimp #Optimization #Retina #WebsiteDesign

I am trying to optimize a set of JPEGs photos (5120 x 2880 px) that will be used on the web for retina screens.

The objective is to reduce file size as much as possible while keeping image quality high (no really bad compression artifacts). The challenge is that I don't own a retina display myself and I am unsure about the best tools (online vs software) to perform compression.

As I am running on Linux, I tried Gimp with the following settings (50% quality compression, 4:2:0 (chroma quartered)), but I am having a hard time to figure out when the image quality turns bad:



Are there any objective criteria or automated processes to find optimal values for smallest possible sizes?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper654

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sent7350415

There is a save-for-web plugin that gives you a more direct feedback on size and appearance when exporting images.

The chroma sub-sampling is indeed the setting that gives the strongest file size reduction for a given visible image alteration. On a dense display (or if the image is scaled by 50% or a regular display) the quartered chroma should not be noticeable.

As a general rule, for quality images I don't go below 85. Going further, compression artifacts start to appear on hard edges and fine detail becomes blurred.

Something you can do to save bandwidth is have images in two sizes, and have some Javascript in the HTML pages to switch the image URL according to the reported display size. But, speaking of JavaScript, keep in mind that in many web pages, you get more traffic from all the JavaScript than from the included images.

Using a CSS Media Query to serve different images to different screen sizes could be a better use of web resources in this example.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme