Get the width of an image specified by an url jquery
<p>I want to read out the width (orgWidth) of an image specified by an url within a for-loop, calculate its new width (calcWidth) for a height of 480px.</p>

<pre><code>for (var i=1; i &lt;= item.length; i++) {

    url = document.images[i].rsc;
    orgWidth = some-fancy-thing-that-reads-the-width;
    orgHeight = some-fancy-thing-that-reads-the-height;

    factor = orgHeight / 480        // 1400 / 480 = 2.916
    calcWidth = orgWidth / factor       // 1000 / 2.916 = 342.935

    document.images[i].width = calcWidth;

}
</code></pre>

<p>Page I need it for:
<a href="http://foto.hendrik-schicke.de/index.php/people" rel="nofollow">http://foto.hendrik-schicke.de/index.php/people</a></p>
