How to open a .ico file in PHP?
<p>I have tried to use php to caculate a image's avarage color.
So I use the php function: <code>imagecolorat()</code>, <code>imagecreatefromstring()</code></p>

<p>This is a part of my code:</p>

<pre><code>$fcontents = file_get_contents($imgname);
$im = @imagecreatefromstring($fcontents);
</code></pre>

<p>But I find it can read image successfully except .ico
How to deal with it?</p>
