Quick Presets
-
Compress to 100 KB β
Visa, passport & exam portals
-
Compress to 50 KB β
Strict ID photo & signature limits
-
PNG to WebP β
Preserve alpha at a fraction of the size
-
JPG to WebP β
Boost web LCP with sRGB accuracy
JPG vs PNG vs WebP vs AVIF: Which Format Should You Pick?
Every encoder runs in WebAssembly on your device and is lazy-loaded only when selected.
| Format | WASM Encoder | Transparency | Best For | Typical Savings vs Original |
|---|---|---|---|---|
| JPEG (MozJPEG) | Progressive MozJPEG | No | Photos, government/exam/visa upload forms | 50β80% smaller |
| PNG | image-q + OxiPNG | Yes (full alpha) | Screenshots, UI icons, logos, sharp text | 60β85% (smart lossy) |
| WebP | libwebp (SIMD) | Yes | Modern websites, blogs, e-commerce LCP | 25β35% smaller than JPG/PNG |
| AVIF | libavif / libaom | Yes | Hero banners & smallest possible web assets | 40β55% smaller (slower encode) |
Color Management Note (Display P3 vs sRGB)
Modern iPhones and mirrorless cameras often capture JPEGs in the wide-gamut Display P3 color space. Stripping the embedded ICC profile without converting pixels causes noticeably washed-out reds and greens. Lasita reads the source ICC profile (JPEG APP2 or PNG iCCP) and either converts Display P3 accurately to standard sRGB (recommended default for WebP/AVIF web delivery) or re-embeds the exact ICC profile when keeping JPEG/PNG.
How Local WASM Compression Works & Honest Limitations
What happens under the hood
Before decoding pixels, our header probe reads the raw image dimensions (PNG IHDR, JPEG
SOF, WebP VP8/VP8X, GIF LSD, AVIF ispe)
to block decompression bombs over 100 MP. Only the encoder WASM you choose is downloaded
from our own origin and verified against its SHA-256 hash before instantiation.
When compression cannot shrink a file further
Files that were already heavily compressed (for example, a small WhatsApp JPEG or a previously quantized PNG) often cannot shrink further in the same format without visible artifacts. In Keep original format mode, Lasita never outputs a larger fileβit marks the item Already optimized and offers a one-click switch to WebP. Animated GIF/WebP/APNG inputs currently keep frame 1 only.
Reviewed by Lasita Engineering on 2026-11-24. Read our full Privacy by Design architecture breakdown.
Frequently Asked Questions
- Are my photos uploaded to a server?
- Never. All decoding, resizing, color conversion, and compression run in WebAssembly inside an isolated frame (images-frame.lasita.dev) with zero external network requests.
- Is there a 5 MB file size or 20-image batch limit?
- No artificial caps. You can compress images up to 200 MB / 100 MP each and drop entire folders or hundreds of images in one batch, limited only by your device RAM.
- How does Target Size mode hit exact limits like 100 KB or 50 KB?
- Our solver binary-searches quality across up to 7 passes while tracking the highest-quality result strictly under your target. If quality 30 still misses the limit, it steps down dimensions cleanly with Lanczos3 resizing and tells you the exact output dimensions.
- Does compression strip my GPS location?
- Yes. GPS coordinates, camera serial numbers, and maker notes are removed by default. If you need chronological sorting, check "Keep date taken" to preserve only DateTimeOriginal with Orientation normalized to 1.
- What if I have iPhone HEIC photos?
- If you drop an iPhone .heic/.heif file, the tool detects its header immediately and gives you a direct link to PixShift (pixshift.lasita.dev), our dedicated zero-upload HEIC converter.