Most "image compressor" websites quietly upload your photos to their servers, slap on file-size limits, ads, or paywalls, and make you wait on a queue.
Shrinkray does it all 100% locally in your browser using the Canvas API. Your images never touch a network. It works offline, has no limits, no sign-up, and is free and open source.
- 🔒 Fully private — images are processed on your device; nothing is uploaded.
- 🗜️ Real compression — typically shrink JPEG/PNG by 60–90%.
- 🔄 Format conversion — WebP, JPEG, PNG, and AVIF (where supported).
- 📐 Resize — cap the max width/height while keeping aspect ratio.
- 📦 Batch — drop dozens of images at once; download all as a
.zip. - 📋 Paste support — paste a screenshot straight from your clipboard.
- ⚡ Instant & offline — static files, installable as a PWA.
- 🎯 Live savings — see before/after size and % saved per image and overall.
- Open https://copilrgiiith.github.io/shrinkray/
- Drag images in (or click to browse, or paste from clipboard).
- Pick an output format, quality, and optional max dimension.
- Download each result, or grab them all as a ZIP.
That's it — no account, no install required.
It's just static files, so any web server works:
git clone https://github.com/CopilrGiiiTh/shrinkray.git
cd shrinkray
python3 -m http.server 8080
# open http://localhost:8080Images are decoded with createImageBitmap, drawn onto an off-screen <canvas>
(optionally downscaled), and re-encoded with canvas.toBlob(type, quality).
ZIP packaging uses JSZip on the client. No
backend, no telemetry, no external calls for your image data.
Works in all modern browsers (Chrome, Edge, Firefox, Safari). AVIF export depends on the browser; if it's unavailable, just pick WebP or JPEG.
Plain HTML + CSS + vanilla JavaScript. No build step, no framework.
Issues and PRs welcome! Ideas: drag-to-reorder, EXIF stripping toggle, side-by-side preview, more formats.
