Are there any JavaScript or jQuery APIs or methods to get the dimensions of an image on the page?
You can apply the onload handler property when the page loads in js or jquery like this:-
$(document).ready(function(){ var width = img.clientWidth; var height = img.clientHeight; });