Are there any JavaScript or jQuery APIs or methods to get the dimensions of an image on the page?
This answer was exactly what I was looking for (in jQuery):
var imageNaturalWidth = $('image-selector').prop('naturalWidth'); var imageNaturalHeight = $('image-selector').prop('naturalHeight');