Eleventy Support

Comments

2 comments

  • Avatar
    Aditi Madan

    Hi Fabian,

    Cloudinary does not have an integration with Eleventy but the logic you are trying to create would look like this :

    1. Make an API call to list resources and see if the resource is found. Alternatively, you could also use the Search API to search by public_id (path of the resource on Cloudinary).

    2. If the image does not exist then use the Upload API to upload it.

    There is also a feature called Etag as public_id where your resource name will be the MD5 signature and that will avoid any duplicate uploads so you will not need to perform step 1.

    More informatiion here: https://support.cloudinary.com/hc/en-us/articles/207441825-How-can-Cloudinary-help-me-to-avoid-duplications-on-my-account-

    Regards,

    Aditi

     

    0
    Comment actions Permalink
  • Avatar
    Fabian Krumbholz

    Thanks for the quick answer Aditi.
    I will give it a try.

    0
    Comment actions Permalink

Please sign in to leave a comment.