An unoptimized image can make a web page load 3–5× slower. Email servers reject attachments over 25 MB. Social media platforms silently re-compress images on upload, producing worse results than if you had compressed them yourself. Understanding how to reduce image file size puts you in control of quality and performance.
Why Images Get So Large
Modern cameras capture images at resolutions far larger than most screens display. A 12-megapixel photo from an iPhone is 4032×3024 pixels. Displayed on a 1440p monitor, you are showing more pixels than the screen can resolve. Storing that full-resolution image on a website wastes storage — the browser will scale it down anyway.
The second factor is format choice. A PNG screenshot of a web page can easily be 5–10 MB because PNG is lossless. The same image saved as JPG at quality 85 might be 300–500 KB with no visible difference.
The Two-Step Approach: Resize, Then Compress
The most effective method: first resize the image to the dimensions you actually need, then compress. Resizing removes the excess pixels entirely; compression then squeezes the remaining data further.
- 1Resize the image to the maximum size it will actually be displayed (e.g., 1200px wide for a blog post).
- 2Compress the resized image at quality 75–85 for JPG.
- 3Check the result at 100% zoom — if it looks the same as the original, you are done.
Target File Sizes by Use Case
- ›Website hero image: under 200 KB (under 100 KB with WebP).
- ›Blog post body image: 50–150 KB.
- ›Profile photo or thumbnail: 10–50 KB.
- ›Email attachment (photo): under 2 MB per image, under 10 MB total.
- ›Email inline image: under 200 KB (large inline images trigger spam filters).
Lossy vs Lossless Compression
Lossy compression (JPG) discards some image data permanently to achieve smaller sizes. At quality 75–85, the loss is invisible for photographic content. Lossless compression (PNG) stores all original pixel data — larger files, but perfect fidelity. For photos and most web images, lossy at a moderate quality setting is the right choice.
How to Compress Images on LunaFile
- 1Go to the Compress Image tool.
- 2Upload your JPG, PNG, or WebP image (up to 20 MB).
- 3LunaFile compresses it with mozjpeg for JPGs and libvips for PNGs.
- 4Download the result. The percentage reduction is shown next to the download button.