I have a base64 img encoded that you can find here. How can I get the height and the width of it?
var i = new Image(); i.onload = function(){ alert( i.width+", "+i.height ); }; i.src = imageData;
My DOM looks like this: <div id="d1"> <div class="c1"> <a href="#"><img src="img1_on.gif"></a> <a href="#"><img src="img2_on.gif">&…
Are there any JavaScript or jQuery APIs or methods to get the dimensions of an image on the page?
I'm using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thing, when an error occurs it does something else. I'm using jQuery load() and error() methods …