Menu

PageSpeed still flags your WebP images? The 0.167 bytes-per-pixel rule, and the free tools we built around it
📰

PageSpeed still flags your WebP images? The 0.167 bytes-per-pixel rule, and the free tools we built around it

DEV Community: opensource·Ali Qayyum·about 5 hours ago
#9rsbPSbl
#devtoopensource#devto#dev#webp#plugin
Long article (1160 words) — no AI summary yet.
Reading 0:00
15s threshold

We run a mobile accessories shop in Lahore, mobilegeeks.pk , on WordPress and WooCommerce. Like most shop owners, we converted our product photos to WebP and expected PageSpeed Insights to stop complaining about images.

It didn't. Some images were still listed under "Improve image delivery" , even though they were already WebP. This time the advice was "increase the compression".

So we read the code that makes the decision, wrote down the rules, and built two free things from them:

Lighthouse Image Check , a browser tool: drop an image in and it tells you if PageSpeed will flag it, then makes a copy that passes. Nothing is uploaded. https://www.mobilegeeks.pk/lighthouse-image-check/ ( code, MIT )

MG Image Optimizer , a WordPress plugin that applies the same rule to every image on a site, on your own server.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.