Image & Video APIs

How to detect corrupted images

Last updated: Feb-12-2026

When you fetch images from a remote server, the success of the request depends, in part, on the remote server's availability and stability.

In case such disruptions occur, images can get truncated and appear broken when served.

Cloudinary can configure your account to return a boolean response key named isCorrupt so when you upload an asset and set the parameter image_metadata set to true, it returns that key as part of the upload response.

Note
This is applicable only for JPEG images.

You can then apply logic based on this response key to handle re-uploading and overwriting the existing corrupted image.

If you'd like to include this response key in your upload responses (currently for paid plans only), please open a support request.

✔️ Feedback sent!

Rate this page:

one star two stars three stars four stars five stars