Get image size in bytes to check for bad images
<p>How do I get image size in bytes. This is for detecting bad image urls.</p>

<p>Example: I have two image links in my database</p>

<ol>
<li>im1.jpg</li>
<li>im2.jpg</li>
</ol>

<p>but, only <code>im1.jpg</code> is available in "img" folder.</p>

<p>I want to detect the bad image URLs, so I can remove them.</p>

<p>If there is any other way, please help.</p>
