I only have a URL to an image. I need to determine the height and width of this image using only JavaScript. The image cannot be visible to the user on the page. How can I g
Similar question asked and answered using JQuery here:
Get width height of remote image from url
function getMeta(url){ $("").attr("src", url).load(function(){ s = {w:this.width, h:this.height}; alert(s.w+' '+s.h); }); } getMeta("http://page.com/img.jpg");