How compression works here
Quality starts at 72%. Leave the long-edge limit at 0 and the pixel size stays as it was. Set a long edge only when the picture itself should be smaller. A PNG stays PNG at 95% or above. Below that, a PNG or WebP is redrawn and saved as JPEG, so transparency is flattened. The slider is a JPEG quality factor, not a target file size. Saving a JPEG again throws away more detail than the first save. An image over 20 MB, or one with more than 24 million pixels, is refused before it is decoded.
Images are decoded with createImageBitmap, optionally scaled to a maximum long edge, then re-encoded through Canvas toBlob. JPEG quality is the slider you set. PNG input at very high quality stays PNG; otherwise photographs are written as JPEG because that is where the size win is. Compress image online, compress JPEG online, compress WebP, or use it as a JPEG compressor, PNG compressor, image size reducer or photo size reducer — same pipeline.
Nothing is uploaded. Compress images without uploading: close the tab and the files are gone. That is how you reduce JPG file size, reduce PNG file size, or reduce image file size on a confidential photo. Batch drop several images and download each result. For a QR of a compressed asset URL, use the QR generator.