Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get image src width and height

// for the original width and height in px of the source
image.naturalWidth, image.naturalHeight

// for the image size in px rendered on the screen
image.width, image.height
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #image #src #width #height
ADD COMMENT
Topic
Name
6+8 =