Show HN: ViewFit – Resize images to the size they are rendered at
Category: devtools
Tags: image-optimization, web-performance, cli-tool, playwright, sharp
Score: 6.0/10 (Innovation: 5, Technical: 6, Documentation: 7, Utility: 6)
ViewFit is a CLI tool that uses a headless Chromium browser to measure the actual rendered size of images on a web page and then resizes and compresses each image accordingly with Sharp. It fills a practical gap in frontend performance optimization by replacing one-size-fits-all image compression with per-image, render-aware sizing.
Target audience: frontend developers, web performance engineers, devops
Repository: https://github.com/andrea-bonacci/viewfit · TypeScript · MIT · 2 stars
View on Hacker News