Reduce image file size: compare dimensions, quality and format with public files
Compare a 512px photo with 256px JPG 90/80 and WebP 80 outputs. Download reference files and see a separate result observed in PicLever.
Check required pixel dimensions, acceptable quality changes and formats accepted by the destination. Changing all three at once makes it difficult to see what caused a smaller file. This public photo example compares dimensions, then quality, then format.
Four results from the same photo
512×512px photo input · 256×256px intermediate PNG · All files ZIP
Click each byte count to open that result.
| Reference output | Dimensions | Bytes |
|---|---|---|
| JPG 90 | 512×512px | 59,747 |
| JPG 90 | 256×256px | 22,170 |
| JPG 80 | 256×256px | 15,804 |
| WebP 80 | 256×256px | 11,748 |
These are Pillow reference encodings. They are not successive recompressions of the previous JPG or WebP. All three 256px outputs were saved independently from the same resized pixels. Recompressing an earlier lossy result adds another source of loss.
1. Dimensions: fewer pixels, not a fixed byte ratio
512×512 contains 262,144 pixels; 256×256 contains 65,536. Halving both dimensions leaves one quarter of the pixels. It does not guarantee one quarter of the file size. Here, JPG 90 changed from 59,747 to 22,170 bytes.
256px is a demonstration size, not a general recommendation for phone photos or blogs. If a destination requires at least 1000px, do not reduce to 256px. Keep originals for printing, enlargement and archival use.
2. Quality: compare at the same dimensions
At 256×256px, JPG quality 90 and 80 produced 22,170 and 15,804 bytes. Open both at the same zoom and compare the face, hair and small clothing patches. We have not concluded that they look identical or that one quality setting is sufficient for every image.
Return to the same original or intermediate PNG for each comparison instead of repeatedly compressing the last result. This separates the quality setting from accumulated re-encoding loss.
3. Format: matching numbers do not mean matching quality
The 256×256px WebP 80 was 11,748 bytes. It was smaller than JPG 80 at the same dimensions, but 80 does not represent a matched quality level between these encoders. Inspect the result and check destination support.
This is the WebP 80 reference result. Use the same zoom for the comparison source.

A separate result observed in PicLever
On November 20, 2026, we loaded the 256px intermediate PNG into Image compression in Windows Chrome. Applying the default WebP, quality 80 reported 256×256px retained, 107.2KB → 12.5KB, one completed image and zero failures.
That is an interface observation, separate from the Pillow table. We did not reopen a browser-saved file during this check, so this is not a measurement of the downloaded file's exact bytes or pixels.
Apply the method to your image
- Check accepted formats, minimum dimensions and the byte limit at your destination.
- If the original is larger than necessary, use Image resizing with aspect ratio preserved. A PNG intermediate avoids an additional lossy save, but does not recover detail removed by downsampling.
- Load that intermediate into compression and choose JPG or WebP. Quality 80 can be a starting point; adjust based on the result.
- Inspect lettering, faces and textures. Save comparison files before changing settings, because a settings change clears previous results.
- Reopen the saved file, check dimensions and appearance, and try the actual destination.
Unexpected results
| Problem | Next check |
|---|---|
| Output is larger | The source may already be well compressed; compare suitable formats |
| Text is blurry | Check whether dimensions were reduced too far; compare PNG |
| Transparency is gone | Check whether you selected JPG |
| Upload fails despite meeting the size limit | Check pixel dimensions, format, file integrity and destination requirements |
Screenshots, text and transparent shapes behave differently from photos. See the JPG, PNG and WebP: public results for photos, text and transparency.
Method and revision
References were generated with Pillow 12.3.0, LANCZOS resizing, optimized 4:2:0 JPEG and WebP method 6. The photo is JPEG-derived material originating from the public NASA photo distributed by scikit-image, not a pristine sensor original. It may already contain JPEG artifacts before resizing.
The verification record includes dimensions, bytes, settings and hashes. Regenerating with the ZIP script reproduced the records. On November 20, 2026, older 608KB→37KB and SSIM tables and charts from unavailable samples were replaced with these public files. Do not generalize their reduction ratios or quality to other images.
Save-option reference: Pillow image-format documentation.