Image Compression Artifacts Explained

Compression artifacts are visible structures introduced when an encoding model cannot represent an image faithfully at the chosen settings. Correct diagnosis matters because blur, noise, resizing, and display scaling need different fixes.

Artifact identification table

Artifact Appearance Common trigger
Blocking Square boundaries in smooth areas Aggressive block-based lossy compression
Ringing Echoes or halos beside sharp edges High-frequency detail discarded
Mosquito noise Shimmering specks around text and edges Low-bitrate transform encoding
Banding Steps in a smooth gradient Insufficient precision or quantization
Chroma bleed Color smears beyond boundaries Chroma subsampling and strong compression
Texture loss Waxy skin or flattened foliage Denoising or lossy simplification

Separate compression damage from other problems

Uniform softness can come from enlargement or poor focus, not encoding. Jagged diagonal edges suggest inadequate raster resolution. A checkerboard or colored fringe around transparency points to alpha handling. Noise may be in the camera source. Compare the output with the source at the same dimensions and 100% zoom, then inspect the intended display size.

Why artifacts cluster around certain content

Hard text edges, hair, foliage, grain, repeated patterns, and subtle gradients demand more information than broad smooth regions. Chroma subsampling can be efficient for photographs but damage colored text and interface graphics. Repeated lossy saves compound errors because each encoder treats earlier artifacts as new source detail.

Professional diagnosis

  1. Return to the best master.
  2. Confirm that source and output dimensions match.
  3. Compare color and luminance separately if possible.
  4. Test one higher-quality setting or lossless output.
  5. If the defect remains in lossless output, inspect resizing, source damage, and display scaling.
  6. Judge at the real viewing size and on a representative device.

Prevention by content type

  • Photos: spend quality on faces, texture, and gradients; reduce avoidable noise before final encoding.
  • Screenshots: prefer lossless or high-quality modes that protect text and hard edges.
  • Logos: keep vector masters or lossless raster derivatives.
  • Transparent assets: test partly transparent edges over contrasting backgrounds.
  • Web images: generate derivatives from a master, not from already compressed downloads.

Common mistakes

  • Sharpening artifacts until halos worsen.
  • Upscaling a small source and blaming the format.
  • Comparing at different dimensions.
  • Using one quality setting for every content type.
  • Converting a damaged JPEG to PNG and expecting repair.

When conversion helps

Conversion can create a better delivery derivative when it starts from a clean master. Testing JPG to WebP may improve the size-quality balance, while PNG to AVIF may help photographic PNGs. It cannot remove artifacts already baked into the source.

Frequently asked questions

Can compression artifacts be reversed?

Not reliably. Filters may hide damage but cannot reconstruct the exact discarded signal.

Does lossless conversion remove JPEG artifacts?

No. It preserves the JPEG’s decoded pixels, including visible artifacts.

Why do artifacts appear after uploading?

The platform may resize or re-encode the image independently of your local file.

Artifact-versus-source test

Create the current setting, a higher-quality output, and a lossless reference from one master at identical dimensions. If a defect fades as quality rises and disappears losslessly, encoding is likely. If it remains in every output, investigate the source, resizing, sharpening, precision, or display.

Content-specific failure cases

Gradient illustration

Banding can originate in the master, an intermediate export, or the final codec. The final encoder cannot restore tonal levels collapsed upstream.

Colored interface text

Chroma subsampling can soften color boundaries even when luminance remains sharp, making a photo-friendly JPEG policy unsuitable for UI captures.

Noisy scan

Paper texture and scanner noise consume coding capacity. Clean conservatively before delivery but retain the unprocessed archival source.

Repair limitations

Deblocking or generative restoration may hide damage but can invent detail. Treat repaired results as derivatives and never replace evidentiary sources.

Related resources