How the sizing and quality work
The scale factor is the smallest of three numbers, so the picture fits inside your box and is never enlarged:
k = min(1, maxW ÷ w, maxH ÷ h) new width = round(w × k) new height = round(h × k)
Here w and h are the original width and height in pixels, and maxW and maxH are the limits you typed.
Worked example
A phone photo is 4032 × 3024 px and your limits are 1600 × 1600. Then 1600 ÷ 4032 = 0.397 and 1600 ÷ 3024 = 0.529, so k = 0.397. The result is 1600 × 1200 px: 1.92 million pixels instead of 12.19 million, about 84% fewer, before compression has even started.
Choosing a format
- WebP: lossy here, keeps transparency, usually the smallest file. If your browser cannot write WebP, the option is switched off.
- JPEG: lossy, opens everywhere, has no transparency. See-through areas are filled with white.
- PNG: lossless, so the quality slider has no effect. Good for flat graphics and text; a photo saved as PNG is often bigger than the original.
The slider runs from 40 to 95%. Quality is not a percentage of the original detail; it is a setting for the encoder, and the same number gives different results in WebP and JPEG.
Limits and side effects
- The output may not exceed 16,384 px on a side or 100 megapixels. For very large scans, lower the max width and height.
- While it works, the browser holds each picture uncompressed at about 4 bytes per pixel, so a 48 megapixel photo needs roughly 190 MB of memory. Phones may struggle with big batches.
- The new file is drawn from pixels only, so EXIF data such as GPS position, camera model and date taken is not copied.
- Animated GIFs come out as a single still frame.
- A file that is already well compressed can grow. The list tells you when that happens; try a lower quality or WebP.