Menu

PNG to WebP for GitHub READMEs: Smaller Screenshots, Faster Docs
πŸ“°

PNG to WebP for GitHub READMEs: Smaller Screenshots, Faster Docs

DEV Community: githubΒ·zjch022Β·about 6 hours ago
#Z12i3ynV
#devtogithub#technology#devto#dev#screenshots
Reading 0:00
15s threshold

PNG to WebP for GitHub READMEs: Smaller Screenshots, Faster Docs

A great README with screenshots loads fast β€” a great README with uncompressed screenshots loads like a slideshow. PNG screenshots are the usual suspect: a single 4K editor screenshot can be several megabytes, and a README with five of them turns your project's front page into a bandwidth test. GitHub renders WebP in READMEs just fine, so converting those screenshots is one of the cheapest documentation upgrades you can make.

Why screenshots bloat so fast

Screenshots of code, terminals, and UIs are mostly flat colors and sharp edges β€” exactly the content PNG compresses worst. Screenshots with photographic content (browser demos, video frames) compress even worse.…

Continue reading β€” create a free account

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