Requesting an image with a different URL structure

markstuartwalker
markstuartwalker Member Posts: 13
edited October 2023 in Developer APIs

I know that the structure URL of an image is typically

https://res.cloudinary.com/lucecoplc/image/upload/t_media_lib_thumb/cld-sample.jpg

To interface Cloudinary from my PIM system I need the URL to be structured with the transformation size on the RHS of the URL like this

https://res.cloudinary.com/lucecoplc/image/upload/cld-sample.jpg/preview

Can I configure Cloudinary to accept this alternative format? If not then I am sure that other users have a work around for this scenario that they could share.

Thanks

Mark

Answers

  • DannyFromCloudinary
    DannyFromCloudinary Member, Cloudinary Staff Posts: 151

    Hi Mark. Thanks for getting in touch.

    We have had similar requests from people in the past who use inriver, which I believe is the use-case you're describing. If you have an enterprise-level account, our Solutions team may be able to apply a custom configuration to deliver named transformations by using a URL suffix, however this is not an out-of-the-box functionality. If you do have an Enterprise account, please raise a support ticket with us with your cloud name and we can discuss this further in the ticket.

    If you don't have an Enterprise account, you may be able to make use of dynamic SEO suffixes, which you can read about in detail here. While this is typically used for altering your delivery URL to provide a more descriptive file path, it effectively allows you to specify anything you like for the last part of the delivery URL.

    Using the sample image on the demo account as an example, the delivery URL is https://res.cloudinary.com/demo/image/upload/sample.jpg. If we change image/upload/ to just images/, we can add an extra slash at the end of the URL and append whatever we like such as https://res.cloudinary.com/demo/images/sample.jpg/preview

    This won't allow you to deliver named transformations with a suffix, but it will allow you to follow the naming convention dictated by your PIM

    I hope this helps. Please let us know if there's anything else you need

    All the nest,

    -Danny