e_grayscale transformation not working
Lately I've been seeing more and more e_grayscale transformations throwing a 400 error, has anyone come across this issue? For example here's a headshot image of me that cannot be transformed:
https://res.cloudinary.com/iadb/image/upload/v1687376032/users/dd7fd5e22e73490482294a8625381d8a_kwn2eu.jpg
And here's the transformation:
https://res.cloudinary.com/iadb/image/upload/e_grayscale/v1687376032/users/dd7fd5e22e73490482294a8625381d8a_kwn2eu.jpg
Anyone knows a way around this?
Best Answer
-
Hi @tomasz,
When Cloudinary returns an error for an image URL that failed to load due to a problem with the image or URL, we return an HTTP header containing more information about why the request failed.
We also return this header for requests where an image was returned but there was a warning, such as when the [default image placeholder](https://cloudinary.com/documentation/image_transformations#using_a_default_image_placeholder) was sent instead of the requested image.
This information is sent in the `x-cld-error` header, and you can [see the value by using your browser's web developer tools](https://support.cloudinary.com/hc/en-us/articles/202520482-Why-isn-t-my-image-showing-up-) to examine the request and response for the image which didn't load correctly.
In your case, the error returned is:
Maximum image size is 25 Megapixels. Requested 88.47 Megapixels
You will need to resize the original before being able to transform it e.g https://res.cloudinary.com/iadb/image/upload/w_1000/e_grayscale/v1687376032/users/dd7fd5e22e73490482294a8625381d8a_kwn2eu.jpg
Loic
1
Answers
-
Oh my gosh. Thanks Loic. I knew it was something I was doing wrong, because Cloudinary has always delivered top notch product, but just in case there was a bug I figured I'd ask here. I was doing resizing, but it seems I was doing it out of order... first grayscale, then resize, so it appears the order does matter. Wow. Thanks so much. As always, best software and best support community.
1