How does Image Compression work?
Digital photographs consist of millions of dense pixel grids, often generating file sizes exceeding 10MB straight from a phone camera. When placing these on standard websites, a slow WiFi connection might take 15 seconds to download the payload. Compression algorithms scan the visual grid, mathematically group identical colors, and purposely degrade invisible micro-details that human retinas cannot detect.
Lossy Conversions (JPG / WebP)
By forcing the export into `image/jpeg` or `image/webp` (Lossy algorithms) and adjusting the Quality Threshold to 70%, the browser natively re-calculates the matrix. The engine strips out roughly 30% of the finest color gradations while preserving the edges and macroscopic structure, resulting in dramatic file size reductions (upwards of 85%) while still looking identical to the untrained eye.
Why is PNG not supported here?
This tool intentionally excludes PNG formats as a deployment output because standard PNGs rely on "Lossless" architecture. The browser canvas cannot cleanly degrade PNG output buffers to compress them natively. If you need a transparent file, it is highly advised that you run it through dedicated algorithmic engines, or alternatively inject it into a JPG background with this tool and suffer the opaqueness.