filter images from webpage based on size
<p>i want to list all images from any particular webpage but want to list only those images whose size is biggger than 10kb .i am using this code to list the images which lists all images of that particular page but i dont want to list images whose size is less than 10 kb</p>

<pre><code>$url="http://example.com";

$html = file_get_contents($url);

$doc = new DOMDocument();
@$doc-&gt;loadHTML($html);

$tags = $doc-&gt;getElementsByTagName('img');

foreach ($tags as $tag) {
   echo $tag-&gt;getAttribute('src');
}
</code></pre>
