pictuary

← Glossary

compression

Double compression

The cumulative quality degradation that occurs when a lossy-compressed image undergoes compression multiple times.

What is Double compression?

Double compression is the cumulative quality degradation that occurs when a lossy-compressed image undergoes compression multiple times, with each pass permanently discarding additional image data and amplifying existing artifacts. This phenomenon is particularly problematic when uploading pre-compressed images to social media platforms, which automatically apply their own compression algorithms. The result is visibly worse image quality than would occur from a single compression pass at an equivalent setting.

Importance of Double compression

Understanding double compression is crucial for maintaining image quality across web, social media, and email use cases, as every major platform applies automatic compression that compounds existing degradation. Without proper compression strategy, users often experience unexpected quality loss when their carefully optimized images become noticeably degraded after upload. Social media compression algorithms are designed to work optimally with high-quality source images, not pre-compressed files.

Double compression in Practice

A photographer uploads a JPEG compressed at quality 60 (approximately 200KB) to Instagram, which then applies its own compression algorithm targeting roughly 85% quality for standard posts. The platform's algorithm operates on the already-degraded image data, encoding and amplifying the existing block patterns and color banding from the first compression pass. The final result shows significantly more artifacts than if the same image had been uploaded as a minimally compressed file and allowed Instagram to perform the single compression pass.

Double compression Best Practices

  • → Start with uncompressed or minimally compressed source images (quality 95+) before uploading to any platform.
  • → Compress once at quality 80-85 specifically for the target platform rather than using pre-compressed files.
  • → Avoid re-editing and re-saving JPEG files multiple times, as each save introduces additional compression artifacts.
  • → Use lossless formats like PNG or HEIC for intermediate edits, then compress to JPEG only for final delivery.

Example of Double compression

A 5MB uncompressed image compressed once to quality 80 produces a 400KB file with minimal visible artifacts. However, if that same 400KB file is compressed again to quality 80, the result is a 180KB image with significantly more visible degradation than a single-pass compression from the original 5MB source to 180KB would produce. The double compression amplifies the block patterns and gradient banding from the first pass.

Related Terms

Lossy compressionCompression artifactQuality settingGeneration loss

Frequently Asked Questions

What is double compression in images?

Double compression occurs when a lossy-compressed image is compressed again, either by the same tool or by an external system like a social media platform. Each compression pass permanently discards image data and amplifies existing artifacts like block patterns and color banding. The cumulative effect produces visibly worse quality than a single compression pass would achieve.

Why do images look worse after uploading to social media?

Images look worse after social media upload because platforms like Instagram, TikTok, and LinkedIn automatically compress all uploaded images, regardless of their original compression level. If you upload a pre-compressed image, the platform's compression algorithms work on already-degraded data, amplifying existing artifacts and creating generation loss. Starting with high-quality source images allows the platform's single compression pass to work optimally.

What happens when you compress an already compressed image multiple times?

Compressing an already compressed image multiple times creates compounding quality degradation where each pass amplifies artifacts from previous compressions. The algorithm encodes existing block patterns, gradient banding, and color distortions as part of the image data rather than removing them. This results in exponentially worse quality compared to achieving the same file size through a single compression pass from the original source.