using python, django how do I determine the size of the image on cloudinary's servers?
I want to find the file size of the image on cloudinary's servers because i want to know how much storage each user is taking up. Can i get that through the model like photo.image.url? Where image is a cloudinary image. I tried photo.image.size, photo.image.bytes, photo.image.w for width. None of these work.
-
Hi Nathan,
The resource information can be retrieved from the CloudinaryField class (see Python SDK model here). Also, you can check the sample Django project showing the process of uploading to Cloudinary and retrieving the image information. Alternatively, you can also use the response JSON to get the asset information you needed after upload (see sample response JSON here).
Hope this helps.
Please sign in to leave a comment.
Comments
1 comment