pictuary

← Glossary

compression

Compression artifact

Visible distortions in images caused by lossy compression discarding data to reduce file size.

What is Compression artifact?

Compression artifacts are visible distortions that appear in images when lossy compression discards data to reduce file size. These artifacts occur because the decoder must reconstruct the image from incomplete information, creating a mismatch between the original and the compressed version that manifests as visual noise, blocking, or color distortion.

Importance of Compression artifact

Understanding compression artifacts helps you maintain image quality when optimizing photos for web, social media, or email use. Without proper quality settings, your images can develop blocky patterns, color banding, or blurry edges that make them look unprofessional and reduce visual impact on your audience.

Compression artifact in Practice

When you compress a high-resolution photo from 5MB to 200KB for web use, aggressive compression below quality 70 often introduces visible blocking artifacts where JPEG's 8×8 pixel blocks become apparent. These rectangular patches are most noticeable in smooth areas like skies or skin tones, while ringing artifacts create halos around text or high-contrast edges in the image.

Compression artifact Best Practices

  • → Compress images at quality 75-85 to minimize visible artifacts while achieving good file size reduction.
  • → Start from the original source file rather than re-compressing already compressed images to avoid double compression.
  • → Preview your compressed image at 100% zoom to check for blocking, ringing, or color banding before publishing.
  • → Use higher quality settings for images with fine details, text overlays, or smooth gradients that show artifacts easily.

Example of Compression artifact

A wedding photographer compresses a 4000×3000 pixel portrait from 8MB to 300KB for social media sharing. At quality 60, the bride's skin shows visible 8×8 pixel blocks and the white dress displays color banding in smooth highlights. Increasing the quality setting to 80 eliminates these artifacts while still achieving a manageable 450KB file size suitable for Instagram upload.

Related Terms

Lossy compressionQuality settingDouble compressionJPEG / JPGWebPColor banding

Frequently Asked Questions

What are compression artifacts in photos?

Compression artifacts are visual distortions like blocking, ringing, and color banding that appear when lossy compression discards image data to reduce file size. These artifacts become visible as rectangular patches, halos around edges, or stepped gradients because the compression algorithm cannot perfectly reconstruct the original image from the reduced data. The severity depends on the compression quality setting and the image content.

How do I avoid JPEG compression artifacts?

You can avoid JPEG compression artifacts by using quality settings between 75-85, which provide good compression while maintaining visual quality. Always start from the original uncompressed file rather than re-saving already compressed images, as this causes double compression and compounds artifacts. Preview your images at 100% zoom to check for blocking or color distortion before finalizing.

Why do my photos look blocky after compression?

Photos look blocky after compression because JPEG divides images into 8×8 pixel blocks during encoding, and aggressive compression makes these blocks visible as rectangular patches. This blocking artifact is most apparent in smooth areas like skies or gradients when quality settings drop below 70. Using higher quality settings or starting from an uncompressed original file reduces this blocky appearance.