Getting "Invalid Transformation" error for images

Randomly getting this error for some images. Not sure what to do?

An Invalid Transformation Error occurs when an incorrect URL-based transformation is applied to the image or video assets delivered using ImageKit.

To help troubleshoot and debug such errors, ImageKit returns an ik-error header in the response. This header provides detailed information, including the error code and a description of the issue. When an invalid transformation is detected, the response will include the following error:

EINVAL - Bad Transformation String

To resolve this, carefully review the transformation parameters used in the URL and ensure they are correctly formatted. For further guidance, refer to our documentation on URL-based transformations.