Fetching GIF's not working if adding transformations
Hello,
I'm getting 404 error when trying to call the fetch API for GIF images.
example:
https://res.cloudinary.com/feature-fm/image/fetch/q_auto:good,w_1920,h_1080,c_fill,g_auto/https%3A%2F%2Fd119zy0ku2qivs.cloudfront.net%2Ff53b3d2c-31e2-4caa-8fb7-1a37b8f97e96.gif
if I remove the transformations params then the request works. like this:
https://res.cloudinary.com/feature-fm/image/fetch/https%3A%2F%2Fd119zy0ku2qivs.cloudfront.net%2F516100c3-11a0-4bbc-a255-3e7e0026b9c2.gif
according to the docs, fetching GIF is supported with on the fly transformations, so whats missing?
UPDATE: when changing the width and height to 424x424 the fetch works as expected. but I'm still confused why 1920x1080 doesn't work.
thank you for you help,
-
Hi Ori,
Thanks for getting in touch.
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 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 to examine the request and response for the image which didn't load correctly.
I've taken a look at your example, and in this case, the specific error is `Resource Not Found` which is due to the strict transformations option being enabled. After disabling it, you will have another error `File size too large. Got 80013607. Maximum is 41943040.` because the file is larger than the 40MB limit you have on your account.
Hope that helps.
Best,
Loic
0
Post is closed for comments.
Comments
1 comment