I'm trying to find out if it's possible to get the dimensions of an image via jQuery
or even vanilla JavaScript
, but not one that is already in the page, an image location which is passed via a parameter.
Example:
myFunction('images/myImage.png');
When that path is passed into the JS function - is there a way to get the images dimensions at all?
Please note the differences in this question and other similar questions that ask how to get the dimensions for the image on the page; it is not a duplicate.