title: How can I the size of an image file from the URL?
body: <p>Images and script are hosted on the same account (one site), but we know only the URL of the image.</p>
  
  <pre><code>$image = "http://example.com/images/full-1091.jpg"
  </code></pre>
  
  <p>How can we get the <strong>size</strong> of this file?</p>
  
  <p>Pseudo-code:</p>
  
  <pre class="lang-none prettyprint-override"><code>{ do something with $image and get $image_size }
  echo $image_size;
  </code></pre>
  
  <p>I would prefer <code>$image_size</code> to be formatted in human-readable file sizes, like "156,8 Kbytes" or "20,1 Mbytes".</p>