To get the dimensions of an image object, I need to use javascript on my page.
When I console.log the image object ($img), I get something like this:
[<img src="/path/to/image/">]
I want to get the original height and width of the original image. I tried using .naturalWidth, .width but those gave strange results.
Can anyone help me out?
 
    