How can I upload images >20MB using transform url?

DevNaya
DevNaya Member Posts: 3
edited May 20 in Developer APIs

I'm using cloudinary's transform url https://api.cloudinary.com/v1_1/demo/image/upload to optimize my images. It works fine for images smaller than 20MB but when I try to upload an image >20MB it fails.

After researching I found out that that's the maximum image size which is allowed for paid plans. But the sdk's provide some methods to upload large images using upload_large methods and so.
So is there any alternative like this in transform url as well?

Tagged:

Answers

  • Tom
    Tom Member, Cloudinary Staff Posts: 113

    Hi @DevNaya ,

    Thanks for reaching out.

    Yes, so the Plus plan has max image file size of 20MB ( https://cloudinary.com/pricing/compare-plans ).

    The SDKs do provide upload_large method and this is relevant for assets greater than 100MB so in your case this is not required for images as it's capped at 20MB but you can use it when uploading videos greater than 100MB as Plus plan comes with a max video file size of 2GB.

    Can you please clarify what you mean is there any alternative like this in transform url as well?

    Please look at https://cloudinary.com/documentation/image_transformations regarding various ways you can transform.

    Please let me know if you have any questions.

    Kind Regards,

    Thomas

  • DevNaya
    DevNaya Member Posts: 3

    Hey Thomas,

    First of all thanks for the reply and really sorry for the late response.
    So in my application I'm using urls to transformer my images.

    Let's assume this

    https://res.cloudinary.com/demo/image/upload/c_thumb,g_face,h_200,w_200/r_max/f_auto/woman-blackdress-stairs.png

    So this works fine, but when I try to optimize an image with size > 20MB same way, it is not working with request failing with an error 400 Bad Request.

    So I was curious if there's a way I can keep using url transformation and also upload large images.

    Thanks,
    Naya Dev

  • Cloudinary_John_H
    Cloudinary_John_H Cloudinary Staff Posts: 51

    Hi Naya,

    I can see that you are on the Plus plan.

    I've increased your max image files size from 20MB, to 30MB. If you need a higher image upload filesize limit it will be necessary to increase your plan to the Advanced Plan or reduce the size of the image ahead of uploading to Cloudinary.

    Hopefully, that is helpful, please let us know if we can do anything else to assist you.

    Thanks,
    John