var img = new Image();
img.onload = function(){
var height = img.height;
var width = img.width;
// code here to use the dimensions
}
img.src = url;
More Related Contents:
- How can I modify with css an image appended with javascript?
- how to proportionally scale a div with images inside?
- Programmatically change the src of an img tag
- Render HTML to an image
- Resize image with javascript canvas (smoothly)
- Browser/HTML Force download of image from src=”data:image/jpeg;base64…”
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- how to show alternate image if source image is not found? (onerror working in IE but not in mozilla) [duplicate]
- execute function after complete page load [duplicate]
- How to silently hide “Image not found” icon when src source image is not found
- Dynamically resizing Image-maps and images
- How to save a base64 image to user’s disk using JavaScript?
- How to display image with JavaScript?
- Can I get image from canvas element and use it in img src tag?
- Disable dragging an image from an HTML page
- How do image preloaders work?
- Adding images to an HTML document with JavaScript
- Load image from url and draw to HTML5 Canvas
- Make image fill div completely without stretching
- img onload doesn’t work well in IE7
- How to download a base64-encoded image?
- JavaScript loading progress of an image
- Is there a way to load images to user’s cache asynchronously?
- Sort by image resolution in gallery
- Is it necessary to set onload function before setting src for an image object?
- How much data / information can we save / store in a QR code?
- How to bind img src to data in Vue
- Center an Image vertically and horizontally using CSS
- canvas- Cropping images in different shapes
- Using base64-encoded images with HtmlService in Apps Script