How can I deliver and transform existing web images using Cloudinary?

In order to deliver and transform existing web images via Cloudinary, you can specify a remote HTTP URL as the 'file' parameter of our upload API. Cloudinary will automatically download the image from this remote URL and you will be able to transform it as you wish.

In addition, we support adding Cloudinary's fetch URL as a prefix to any URL for dynamically transforming remote images and delivering through a CDN, see our blog post for more details: http://cloudinary.com/blog/delivering_all_your_websites_images_through_a_cdn

Here's a sample fetch URL that creates a 150x150 crop focused on Jennifer’s face ('g_face') and with rounded corners of 20 pixels ('r_20') and generates the following image:

http://res.cloudinary.com/demo/image/fetch/w_150,h_150,r_20,c_thumb,g_face/http://upload.wikimedia.org/wikipedia/commons/4/46/Jennifer_Lawrence_at_the_83rd_Academy_Awards.jpg

Sample

Have more questions? Submit a request

Comments

  • Avatar
    Tim Coulter

    Hi Cloudinary,

    I'm mainly interested in your service for its on-the-fly resizing through the fetch method, but due to the nature of the app I'm creating, for security reasons, I'd be passing many temporary URLs through Cloudinary. I noticed that for each fetch -- even a fetch with the same image but a different query string -- a new image is stored in my Media Library and counted against my total storage count. I want images added to my library through fetch to expire after a certain period of time. Is this possible?

    Thanks!

    Tim 

  • Avatar
    Itay Taragano

    Hi Tim,

    Cloudinary currently doesn't support automatic timely purging of fetched resources.

    Until this feature is made available, you can implement timely deletions yourself using Cloudinary's Admin APIs.

    Itay

Powered by Zendesk