尚未偵測到更新。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