Namegarage

Smaller blog images with lossless WebP

Dev blog#images#performance#blog

In Sharp uploads, blurry banners, you can zoom in on lettering to see what happened when a platform resized an image. A second lossy conversion could soften the very edge you came to inspect.

We encoded all 29 PNGs in the blog image collection as lossless WebP. Together the originals occupy 3.79 MB. The WebP copies occupy 2.31 MB, a 39% reduction from the source files. The live site already compressed its PNGs and served two launch images as WebP. We fetched all 29 images before and after the update. The total fell from 3,164,962 to 2,312,848 bytes, a saving of 852,114 bytes (26.9%) for one download of each image. A single article loads only a portion of the collection.

We decoded each copy and compared its dimensions and every pixel to the original. We also checked that the nine images with embedded color profiles kept those profiles, so browsers can interpret their colors as intended. The blog offers WebP for inline reading. The original PNGs are available to older browsers and through the figures’ full-size links.

Add as preferred source
Hacker News X LinkedIn Email

Using this button loads Google’s service and allows its usage measurement. Privacy policy.

Get new blog posts by email

Comments

Comments are reviewed before publication. The Author badge marks replies from the author.

Read approved comments on the discussion page.

    Open the discussion page

    Leave a comment

    Your account name, sign-in provider, and comment become public after review. Your email stays private. See the blog comments privacy notice and Privacy Policy.

    Sign in to leave a comment.