Is it possible to get image dimensions without actually downloading the image?
I've inherited some code that is using some clever Cloudinary API usage to upload images from the browser directly to Cloudinary servers. There is a new minimum image dimension constraint that we want to impose, but on our admin panel we display the image with much smaller dimensions. (ie: we display a processed, smaller version of the original)
I can get the dimensions of the image we display but not those of the original image. Do I have to download the original image separately to get the original dimensions, or is there a better way that I can get that data?
-
Aha! the answer is here in the docs.
Please sign in to leave a comment.
Comments
2 comments