Troubleshooting image transformation errors
Last updated: Mar-31-2026
When working with Cloudinary image transformation URLs, you may encounter errors due to invalid syntax, unsupported parameter values, or conflicting transformation options. This page helps you diagnose and resolve common transformation errors using the X-Cld-Error response header.
Understanding transformation errors
If you encounter a problem when accessing a Cloudinary transformation URL (such as a blank result, a 400 error, or unexpected output), Cloudinary reports the error details in the X-Cld-Error HTTP response header.
Common transformation error scenarios include:
-
Invalid syntax: Using incorrect parameter names or values (e.g.,
w_abcinstead ofw_300) -
Conflicting parameters: Combining transformation options that don't work together (e.g., using
g_autowith incompatible crop modes) - Unsupported features: Attempting to use features not available on your plan or not enabled for your account
- Missing resources: Referencing overlay images or fonts that don't exist
X-Cld-Error inspector tool
Use the interactive tool below to quickly inspect the X-Cld-Error header for any Cloudinary image URL. Simply paste your transformation URL and click "Inspect Headers" to see if there are any errors reported.
How to inspect errors manually
If the tool above fails to retrieve headers, you can inspect the X-Cld-Error header manually using your browser's Developer Tools:
Chrome / Edge
- Open Developer Tools (View > Developer > Developer Tools, or press F12)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Find the request in the network list
- Click on it to view details
- Look for X-Cld-Error under the Response Headers section
Firefox
- Open Developer Tools (Tools > Browser Tools > Web Developer Tools, or press F12)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Find the request and click on it
- Click the Headers tab
- Look for X-Cld-Error under Response Headers
Safari
- Enable Developer menu (Preferences > Advanced > Show Develop menu)
- Open Web Inspector (Develop > Show Web Inspector, or press Cmd+Option+I)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Select the request
- Look for X-Cld-Error in the response headers
Common image transformation errors
Invalid parameter values
Error example: Invalid width in transformation: abc
- Cause: Using a non-numeric value for a parameter that expects numbers
-
Solution: Ensure numeric parameters like
w(width),h(height),q(quality) use valid integer or decimal values
Gravity parameter conflicts
Error example: Auto gravity can only be used with crop, fill, thumb, lfill
-
Cause: Attempting to use
g_autowith incompatible crop modes likescaleorfit -
Solution: Use
g_autoonly with supported crop modes:crop,fill,lfill,fill_pad,auto,auto_pad, orthumb
Overlay image not found
Error example: Unknown or invalid referenced image <public_id> of type upload: Resource not found - <public_id>
-
Cause: The overlay image specified with
l_<public_id>doesn't exist -
Solution: Verify the public ID is correct, and replace slashes with colons in folder paths (e.g.,
l_folder:imageinstead ofl_folder/image)
URL requires a signature
Error example: Resource not found
- Cause: Possibly using an add-on feature that requires URL signing, or the image is private or authenticated
- Solution: Generate a signed URL or enable the add-on in "Unsigned add-on transformations allowed" in your Console Security settings
Base image not found
Error example: Resource not found - <public_id>
-
Cause: The base image,
<public_id>, doesn't exist -
Solution: Double-check that the public ID is correct, the asset exists in your Cloudinary account, and you are referencing the right resource type (e.g.,
image,video). If your asset is in a folder and your account uses fixed folders, ensure you're including the folder path in the public ID, using forward slashes, not colons.
Additional troubleshooting resources
- Transformation URL API Reference: Comprehensive documentation of all transformation parameters and their valid values
- Common error codes reference: List of common X-Cld-Error codes with detailed causes and solutions
- Diagnosing error codes tutorial: Video walkthrough of troubleshooting transformation errors
- Error handling documentation: Learn about error reporting and troubleshooting strategies
- Media Inspector browser extension: Install the Cloudinary Media Inspector extension to view error headers directly in your browser
- Error Reports in Console: View aggregated error data for your account (Advanced plan and higher)