Upload image to Cloudinary and generate a low-res version as a different URL at the same time

1.3k views Asked by At

I am using Cloudinary to upload pictures from Android, but since they are usually a bit large I would like to generate a thumbnail for it that has a different URL.

This will allow me to have a full-resolution and a low-resolution version but only uploading the large picture.

I know I can use eager transformations, but I couldn't find a way to also get a different URL for the transformed one.

The equivalent would be for me to upload the full-res version and then do a new upload with the eager transformation. But that would increase the amount of data transfer my Android app needs, for what is essentially the same information.

So instead of upload full-res->get url->upload low-res->get url, I want full-res->get both urls

Is there any way I can upload only once and get two URLs for the different versions?

Thanks!

1

There are 1 answers

3
Itay Taragano On BEST ANSWER

As Cloudinary's transformation string is included in the URL itself, the transformed image's URL is different than the original one. For example: http://res.cloudinary.com/demo/image/upload/sample.jpg vs.: http://res.cloudinary.com/demo/image/upload/w_200/sample.jpg