尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Compress photos 100% in your browser. Same resolution, near-identical quality, ~70% smaller. Your photos never leave your device.
翻译准备中
正在加载完整 README。
查看完整 README ↗Compress photos right in your browser. Nothing is uploaded, ever.
Live app: https://privacy-first-image-compress.vercel.app
My phone and laptop kept running out of storage. I didn't want to delete photos, and I didn't want them to look worse either. The online compressors I tried all work the same way: you upload your pictures to someone else's server and hope they get deleted afterwards. For personal photos I wasn't comfortable with that.
So in 2025 I built a compressor where all the work happens on your own device. Your browser does the compression, and the page can't even open a network connection to send your files anywhere.
| Input | Output |
|---|---|
| JPEG | JPEG (metadata kept) |
| WebP | WebP |
| PNG with transparency | WebP |
| PNG without transparency, BMP, others | JPEG |
| GIF, SVG | Left unchanged |
F12 to open DevTools, then go to the Network tab.The page also ships a Content Security Policy with connect-src 'none'. That tells the browser to block every fetch, XHR, WebSocket and beacon from the page, so even a bug couldn't upload your images. Fonts are bundled with the app, so the page doesn't contact Google Fonts or any other third party.
git clone https://github.com/Krunalio/Privacy-first-image-compress.git
cd Privacy-first-image-compress
npm install
npm start # dev server at http://localhost:3000
npm test # run tests
npm run build # production build in ./build
The build is a set of static files. You can host it anywhere, or open it on a machine with no internet connection.
Each image is drawn onto an HTML <canvas> and re-encoded with canvas.toBlob() at the quality you picked. For JPEGs, the original EXIF block is copied into the new file, with the orientation tag reset because the browser has already rotated the pixels. The main code is in src/utils/compress.js and src/utils/exif.js.
Issues and pull requests are welcome. Some ideas:
Pull requests are reviewed and merged by the maintainer. Please open an issue first for bigger changes so we can agree on the approach.
Questions, ideas or feedback: [email protected]
MIT © Krunal