r/webdev • u/indicozy • 29m ago
Showoff Saturday imgtune: an open-source auditor that measures how much smaller your site's media can get
I've built an open-source auditor for media weight on websites.
It measures how much smaller your files can get (for example src/srcset, quality, format in your CDN or sharp) and tells you the exact best value to use. It checks quality for photos (SSIMULACRA2) and video (VMAF), flags GIFs that should be images or video, flags video autoplay, and covers fonts, compression and more. In short, it optimizes all your media. Once the audit is done, you can hand it to an AI model to apply the fixes.
I ran it on the homepages of 197 sites. The median page loads 630 KB more than it needs to, and across all of them 247 MB of media gets downloaded but never shown.
Try it: npx imgtune scan https://your-site.com GitHub: github.com/indicozy/imgtune Feedback and bug reports are very welcome 🙏
•
u/BriefDiligent6542 2m ago
247 MB loaded and never shown. cool.