How to get image size from a file with jQuery?
<p>I want to get a width from a file to use it as a variable. Trying that:</p>

<pre><code>iconOS_img = new Image();
iconOS_img.src = '/details/images/icon.png';
var iconOS_img_width = iconOS_img.width;

alert(iconOS_img_width);
</code></pre>

<p>However, it returns <code>0</code>.</p>
