None that I know of … natively.

You could have an external service return you the image dimensions.