Problems with dynamic url transformations
Hello everyone,
I'm having trouble dynamically transforming images using urls. Whenever I attempt to transform an image, the browser says "this page isn't working." For example:
Thanks!
Answers
-
Hi there,
Thanks for reaching out.
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. 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
Only upload, private, authenticated kinds are allowed for the generative AI effect
I see that you are fetching an asset and applying a named transformation to that asset. Your named transformation includes the generative replace feature. None of the generative AI effects are supported with fetched images - only the delivery types upload, private, and authenticated can be used with generative AI.
You can see this mentioned in the blue highlighted box of Notes and limitations for each of the generative AI effects:
https://cloudinary.com/documentation/effects_and_artistic_enhancements#generative_ai_effectsI hope this helps. Let me know if you have any questions.
Kind regards,
Tia
Helpful Links For You
💬 Share questions, connect with other users in our Cloudinary Community forums and Discord server!
🧑🎓 Join our Cloudinary Academy for free courses, workshops and other educational resources.
📄 Read our documentation for in-depth details on Cloudinary product features and capabilities
📰 Check out the Cloudinary blog for the latest company news and insights0 -
Thanks! Are there any plans to add AI support for fetched images in the future?
0 -
Hi there,
I think we may support fetch eventually, but I do not have an eta to share on that. Do you specifically need the fetch lifecycles? If not, I would l recommend auto-upload instead. You can read about that feature here:
https://cloudinary.com/documentation/migration#lazy_migration_with_auto_uploadKind regards,
Tia
Helpful Links For You
💬 Share questions, connect with other users in our Cloudinary Community forums and Discord server!
🧑🎓 Join our Cloudinary Academy for free courses, workshops and other educational resources.
📄 Read our documentation for in-depth details on Cloudinary product features and capabilities
📰 Check out the Cloudinary blog for the latest company news and insights0