Social platforms recompress every image they receive, and the recompression can add blockiness, banding and softness that were not in the original file. Google web.dev notes that JPEG is a lossy format and that you should try several quality levels, and that WebP and AVIF give better compression than JPEG for the same quality. Upload the image, view the live version, and compare it with the original before the post goes out.
What you need
- The AI-generated image at its upload size
- Access to the social platform it will be published on
- The original file for comparison
Step 1: Upload the image as a draft or test post
Upload the image to the platform as a draft, a test post, or a private post, at the size and format the platform recommends. Do not publish it yet.
Step 2: View the live version at full size
Open the uploaded image on the platform and view it at full size. Look for blockiness in flat areas, banding in gradients, and softness in faces and text.
Step 3: Re-export at a higher quality if the live version is damaged
If the live version is damaged, re-export the original at a higher quality or in a different format, and upload again. Keep the version that survives the platform compression best.
Worked example: synthetic compression check of one image
The table below is a synthetic example. It shows the expected result of checking one image after upload; no image was published.
| Version uploaded | Live version | Verdict |
|---|---|---|
| JPEG q70 | Blocks in sky | Fail |
| JPEG q90 | Clean | Pass |
| WebP q85 | Clean, smaller file | Pass |
| PNG | Clean, largest file | Pass |
Expected result (UNTESTED). the JPEG q70 upload shows blocks and fails, and the JPEG q90, WebP q85 and PNG uploads are clean, so the WebP q85 version is the one to publish. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Each platform compresses differently, so a version that passes on one platform can fail on another.
- A platform can change its compression without notice, so re-check for important posts.
- A draft or test post is not the same as a published post, so check the published version too.
- The platform may resize the image as well as recompress it, so check the size it is shown at.
