If you use the width
and height
properties of the image node (vanilla Javascript) or use jQuery’s width()
or height()
function, you’ll get the size that you see in the browser. Getting the actual dimension (native or natural width/height) of the image is actually quite easy. Let’s see how.
Continue reading “Get the Original Width and Height of an Image”