A photo taken on a modern smartphone is typically 4–8 MB. Attached to an email with four other photos, you hit the 25 MB attachment limit. Embedded in a PDF report with ten images, the file becomes unwieldy to share. Uploaded to a website without compression, it slows page load times and costs visitors mobile data. Image compression solves all of these problems — and the right technique reduces file size by 70–90% with changes that are genuinely invisible to the human eye. This guide explains exactly how compression works and the settings to use for every scenario.
1. Why Image Files Are So Large to Begin With
An uncompressed image stores color data for every single pixel. A 12-megapixel photo has 12 million pixels, each requiring 3 bytes for RGB color — that is 36 MB of raw data before any file format overhead. Image formats like JPG and PNG were designed specifically to reduce this through compression, but the camera-default settings prioritize quality over size, producing files far larger than most sharing or display use cases require.
The key insight: the human visual system is far more sensitive to luminance (brightness and contrast) than to chrominance (color detail). JPG compression exploits this by discarding high-frequency color information that your eyes barely perceive while preserving the brightness detail that makes images look sharp. Done well, the result is visually identical to the original at a fraction of the size.
2. Lossy vs. Lossless Compression
Every compression method falls into one of two categories, and choosing the wrong one for your use case either wastes space or degrades quality unnecessarily.
Lossy Compression
Lossy compression permanently discards image data to achieve smaller file sizes. JPG is the classic example. When you save a JPG at "80% quality," the encoder discards the least-perceptible 20% of image information — primarily fine color transitions and high-frequency texture in smooth areas. The result looks almost identical on screen but cannot be restored to the original. Each time you re-save a lossy file, it loses another generation of quality — the so-called "generation loss" problem. Always work from your original and export a compressed copy; never re-compress an already-compressed JPG.
Lossless Compression
Lossless compression reduces file size without discarding any data. The original can be perfectly reconstructed. PNG uses DEFLATE compression (the same algorithm as ZIP), which finds and eliminates repetitive patterns in pixel data without any quality loss. TIFF and WebP both support lossless modes. Lossless files are always larger than their lossy equivalents — sometimes significantly so. Use lossless formats when pixel-perfect accuracy matters: icons, logos, screenshots with text, diagrams, and document scans intended for OCR.
3. Format Comparison: JPG vs. PNG vs. WebP
4. DPI and Resolution for Different Use Cases
DPI (dots per inch) is frequently confused with pixel dimensions, but they are related in a specific way. DPI only matters when an image is printed — a 72 DPI image and a 300 DPI image can have identical pixel dimensions and look identical on screen. The DPI metadata tells a printer how large to render the image.
- Web / Screen display: 72–96 DPI. Screen resolution is fixed by the monitor — higher DPI metadata has no effect and adds no quality. Reduce high-DPI images to 96 DPI for web use to strip unnecessary metadata.
- Email attachments viewed on screen: 96–150 DPI is sufficient. Most recipients never print email attachments.
- Standard office printing (A4, letter): 150–200 DPI produces acceptable results. 300 DPI is professional quality.
- Professional print / press: 300–600 DPI. Magazine and brochure images require 300 DPI minimum at final print size.
- Document scanning for OCR: 300 DPI minimum — see the OCR guide for detail.
5. Real-World Size Comparisons
Here is what compression actually achieves on typical files, based on a standard 12MP smartphone photo (4032×3024 pixels):
The jump from 100% JPG to 85% JPG is an 77% size reduction with no visible difference on any normal display. The 85% JPG vs. 70% JPG difference is visible only on close inspection of smooth gradients — acceptable for email and web use, not ideal for print.
6. Best Settings for Documents vs. Photos
Scanned Documents (Text-Heavy)
For document scans where OCR is not needed and the output will be viewed on screen: convert to grayscale, use JPG at 80% quality, and resize to 150 DPI equivalent. This produces files under 100 KB per page — perfectly readable on screen and email-safe. If OCR will be run on the file, keep the original at 300 DPI in PNG or TIFF format and compress a separate viewing copy. Use the CamMaster compressor to batch process multiple pages.
Product or Portfolio Photos
For photos shared via email or embedded in reports: JPG at 85% quality, maximum width 2000px (enough for full-screen display on any monitor). For website use, convert to WebP at equivalent quality for an additional 25–30% size reduction. Always strip EXIF metadata from photos before web publishing — it can contain GPS location data and camera serial numbers that you may not want public.
Screenshots and UI Images
Screenshots containing text and UI elements must use PNG or WebP lossless — never JPG. The block artifacts JPG produces around text edges and sharp lines are immediately visible and make screenshots look unprofessional. PNG-24 for screenshots with many colors; PNG-8 for screenshots with simple flat-color UI elements (can be 70% smaller).
7. Batch Compression Workflow
When you have dozens of images to compress — a folder of scanned documents, a product photo shoot, screenshots for a report — a methodical batch workflow saves time and ensures consistency.
- Audit your files first. Sort by file size (largest first) to identify the biggest compression wins. Focus effort on files over 2 MB.
- Decide on a target size or quality. For email attachments: target under 500 KB per image. For web: target under 200 KB. For document archives: target under 150 KB per page.
- Choose format by content type. Photos → JPG 85% or WebP. Screenshots/diagrams → PNG. Mixed → WebP handles both well.
- Use CamMaster's batch compressor to process multiple files at once with consistent settings. The output preview shows before/after file size so you can verify results before downloading.
- Keep originals. Save compressed versions to a separate folder (
/compressed/or/web/). Never overwrite originals — storage is inexpensive and you will eventually need the full-resolution version for print. - Validate a sample. Open a few compressed files at 100% zoom on a monitor and compare against the originals. If you spot artifacts, increase quality by 5% and reprocess.
🗜️ Compress Images Free — Instant Results
Compress JPG, PNG, and WebP images in your browser. See before/after file size instantly. No upload to any server.
Compress Images Free →