How can I get the size or dimensions of an image by its public ID?

When uploading using our API, every upload call automatically returns a JSON response with the file's details including the  byteswidth and height parameters.

You can also use our Admin API to list the details of an already uploaded image. For example in Ruby:

Cloudinary::Api.resource('sample')

Note that Admin API calls (only) are rate limited.

For more information:
http://cloudinary.com/documentation/admin_api#details_of_a_single_resource

Have more questions? Submit a request

Comments

Powered by Zendesk