Problems with dynamic url transformations

tropiduck
tropiduck Member Posts: 2
edited June 28 in Digital Asset Management

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

  • Cloudinary Team
    Cloudinary Team Administrator, Cloudinary Staff Posts: 170 admin

    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_effects

    I 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 insights

  • tropiduck
    tropiduck Member Posts: 2

    Thanks! Are there any plans to add AI support for fetched images in the future?

  • Cloudinary Team
    Cloudinary Team Administrator, Cloudinary Staff Posts: 170 admin

    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_upload

    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 insights