← Blog

JPEG Compression Explained Simply — How It Works and Why Photos Lose Quality

Why does your photo look blurry after compressing it? Why do some portals accept 50 KB while others want 100 KB? Here's a plain-English explanation of JPEG compression and how to use it smartly.

Compress JPEG to Any KB — PhotoFit

JPEG Quality vs File Size — At a Glance

Quality %Approx Size (3.5×4.5 cm photo)Visual QualityBest For
95–100%Very large (500 KB–2 MB)ExcellentProfessional photography, archiving
80–90%Large (150–400 KB)Very goodWeb display, blog images
60–75%Medium (60–150 KB)GoodGovt portals (100 KB limit)
40–55%Small (20–60 KB)AcceptableExam portals (50 KB limit)
20–35%Very small (5–20 KB)DegradedOnly if portal requires under 20 KB

How JPEG Compression Works (Simply)

JPEG divides your image into 8×8 pixel blocks and applies a mathematical transform (DCT — Discrete Cosine Transform) to each block. This converts pixel values into frequency coefficients — like converting a sound wave into its component notes. High-frequency coefficients (fine texture, sharp edges) are discarded first, because the human visual system is less sensitive to them. Lower-frequency coefficients (overall colour and brightness) are kept. The result is a smaller file that looks nearly identical to the original at moderate compression.

At very high compression, too much is discarded and you see the 8×8 blocks as rectangular patches — "blocking artifacts". Faces show these most clearly around eyes, lips, and hair edges. At the compression levels needed for 50 KB (a passport photo at 413×531 px), the JPEG quality is around 40–55%, which is acceptable for identity verification but not for printing or display.

Frequently Asked Questions

What is JPEG compression?

JPEG is a "lossy" compression format. When you save a photo as JPEG, the compression algorithm discards visual information the human eye is least likely to notice — particularly fine colour variations and high-frequency details. This makes the file smaller, but permanently removes some data. The more you compress, the more data is lost and the lower the visual quality.

Why does a JPEG look blurry or blocky at high compression?

JPEG compression works on 8×8 pixel blocks. At high compression levels, all pixels in a block are averaged together, creating visible rectangular patches called "compression artifacts". Faces, especially eyes and edges, show these artifacts most clearly.

What JPEG quality should I use for government portal photos?

For 50 KB portals (SSC, IBPS): quality around 40–55%. For 100 KB portals (passport, NPS): quality around 60–75%. PhotoFit calculates this automatically — you just enter the target KB and it finds the right quality level for your photo.

Is PNG or JPEG better for ID photos?

JPEG is required by virtually all Indian government portals and visa applications. PNG files are typically larger and are rejected by most exam portals. Always upload as JPEG for identity photos unless a portal specifically accepts PNG.

Does compressing a photo multiple times reduce quality faster?

Yes. Each time you open and re-save a JPEG, the compression runs again on already-compressed data, introducing new artifacts on top of old ones. This is called "generation loss". To avoid it, always compress from your original photo, not from a previously compressed version.

DPI ExplainedCompress to 50 KBCompress to 20 KB