Menu

Convert a WebP export to PNG in the tab when the repo still expects a PNG
📰

Convert a WebP export to PNG in the tab when the repo still expects a PNG

DEV Community: frontend·Sherotree·12 days ago
#3HGaRMkI
#devtofrontend#devto#dev#webp#already
Long article (600 words) — no AI summary yet.
Reading 0:00
15s threshold

The designer’s export, or a Save Image from the browser, is a .webp . The README, the changelog, or the fixture folder still wants a PNG. CI fails a type check, a docs generator will not embed the file, or a teammate on an older preview tool sees a broken image. Someone uploads the WebP to a random converter “just this once.”

I’ve started treating a WebP sitting in a PNG-only slot as a format mismatch , not as a reason to change the pipeline in the same PR. Convert the asset if the repo still expects PNG. Change the pipeline later, on purpose, if you want WebP there.

This is not a request to convert every WebP. If the app already serves WebP and the folder accepts it, keep the smaller file.…

Continue reading — create a free account

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