<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Tom Reitz</title>
	<atom:link href="http://www.tom-reitz.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tom-reitz.com</link>
	<description>Tech Talk, Catholic Commentary, and American Activism</description>
	<lastBuildDate>Mon, 21 Mar 2011 01:50:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on PHP ICO to PNG conversion by Edward de Leau</title>
		<link>http://www.tom-reitz.com/2009/02/17/php-ico-to-png-conversion/comment-page-1/#comment-14883</link>
		<dc:creator>Edward de Leau</dc:creator>
		<pubDate>Mon, 21 Mar 2011 01:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=119#comment-14883</guid>
		<description>XOR ing the icon sometimes goes wrong on line 298: $bits .= str_pad(decbin(ord($this-&gt;formats[$index][&#039;data&#039;][$offset + $i])), 8, &#039;0&#039;, STR_PAD_LEFT);

e.g. with icon found here: http://www.slatch.com/ as favicon</description>
		<content:encoded><![CDATA[<p>XOR ing the icon sometimes goes wrong on line 298: $bits .= str_pad(decbin(ord($this->formats[$index]['data'][$offset + $i])), 8, &#8216;0&#8242;, STR_PAD_LEFT);</p>
<p>e.g. with icon found here: <a href="http://www.slatch.com/" rel="nofollow">http://www.slatch.com/</a> as favicon</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP ICO to PNG conversion by edward de leau</title>
		<link>http://www.tom-reitz.com/2009/02/17/php-ico-to-png-conversion/comment-page-1/#comment-14839</link>
		<dc:creator>edward de leau</dc:creator>
		<pubDate>Thu, 10 Mar 2011 15:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=119#comment-14839</guid>
		<description>I sometimes get the following notice on some icons:

Notice: Uninitialized string offset: 64 in class.ico.php on line 296

Im using the class in my WordPress plugin so it loads thousands of different ico&#039;s on some I get this error.</description>
		<content:encoded><![CDATA[<p>I sometimes get the following notice on some icons:</p>
<p>Notice: Uninitialized string offset: 64 in class.ico.php on line 296</p>
<p>Im using the class in my WordPress plugin so it loads thousands of different ico&#8217;s on some I get this error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Home by admin</title>
		<link>http://www.tom-reitz.com/comment-page-1/#comment-14830</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 07 Dec 2010 18:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?page_id=3#comment-14830</guid>
		<description>@faviconicon: lol! maybe a bit :)</description>
		<content:encoded><![CDATA[<p>@faviconicon: lol! maybe a bit <img src='http://www.tom-reitz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Home by faviconicon</title>
		<link>http://www.tom-reitz.com/comment-page-1/#comment-14829</link>
		<dc:creator>faviconicon</dc:creator>
		<pubDate>Sun, 28 Nov 2010 01:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?page_id=3#comment-14829</guid>
		<description>you look likt sawyer in LOST</description>
		<content:encoded><![CDATA[<p>you look likt sawyer in LOST</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ICO images in FaceBook profile boxes by faviconicon</title>
		<link>http://www.tom-reitz.com/2009/02/09/ico-images-in-facebook-profile-boxes/comment-page-1/#comment-14828</link>
		<dc:creator>faviconicon</dc:creator>
		<pubDate>Sun, 28 Nov 2010 01:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=42#comment-14828</guid>
		<description>Thank you the ico.class</description>
		<content:encoded><![CDATA[<p>Thank you the ico.class</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP ICO to PNG conversion by admin</title>
		<link>http://www.tom-reitz.com/2009/02/17/php-ico-to-png-conversion/comment-page-1/#comment-14827</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 19 Nov 2010 08:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=119#comment-14827</guid>
		<description>imagepng($png, &quot;filename.png&quot;);
should work...

If not, I would check:
- that you have the GD library installed and available on your system
- that it&#039;s not a file permissions issue (php not allowed to write to the directory you&#039;re working in)
- that the original .ico you&#039;re converting isn&#039;t blank or malformed

When all else fails, try some troubleshooting. See if imagegif($png, &quot;filename.gif&quot;); works, etc.</description>
		<content:encoded><![CDATA[<p>imagepng($png, &#8220;filename.png&#8221;);<br />
should work&#8230;</p>
<p>If not, I would check:<br />
- that you have the GD library installed and available on your system<br />
- that it&#8217;s not a file permissions issue (php not allowed to write to the directory you&#8217;re working in)<br />
- that the original .ico you&#8217;re converting isn&#8217;t blank or malformed</p>
<p>When all else fails, try some troubleshooting. See if imagegif($png, &#8220;filename.gif&#8221;); works, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP ICO to PNG conversion by Flashsnake</title>
		<link>http://www.tom-reitz.com/2009/02/17/php-ico-to-png-conversion/comment-page-1/#comment-14826</link>
		<dc:creator>Flashsnake</dc:creator>
		<pubDate>Mon, 08 Nov 2010 01:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=119#comment-14826</guid>
		<description>What should I do if I need to save the png image as a file? I tried to use:

imagepng($png, &quot;sample.png&quot;); 

But the image turns out to be blank.

Thanks,</description>
		<content:encoded><![CDATA[<p>What should I do if I need to save the png image as a file? I tried to use:</p>
<p>imagepng($png, &#8220;sample.png&#8221;); </p>
<p>But the image turns out to be blank.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP ICO to PNG conversion by Tony</title>
		<link>http://www.tom-reitz.com/2009/02/17/php-ico-to-png-conversion/comment-page-1/#comment-1448</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Wed, 28 Apr 2010 08:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=119#comment-1448</guid>
		<description>wanna see something cool?

GetIconInfo($index);
	$icons[$index][&#039;width&#039;] = $icon[&#039;Width&#039;];
	$icons[$index][&#039;bitcount&#039;] = $icon[&#039;BitCount&#039;];
}
// sort by width, then bitcount (ascending). you can change the priority if you like by switching them around above
asort($icons);
// get the key of the last icon (highest quality) in the sorted list
$best = end(array_keys($icons));
// now make a png
if(!($png=$ico-&gt;GetIcon($best))) die(&quot;Could not load ICO.&quot;);
else {
	header(&quot;Content-Type: image/png&quot;);
	imagepng($png);
}
// win!
?&gt;

with a bit more effort, i use this to generate image preview tooltips in apache&#039;s autoindex [=</description>
		<content:encoded><![CDATA[<p>wanna see something cool?</p>
<p>GetIconInfo($index);<br />
	$icons[$index]['width'] = $icon['Width'];<br />
	$icons[$index]['bitcount'] = $icon['BitCount'];<br />
}<br />
// sort by width, then bitcount (ascending). you can change the priority if you like by switching them around above<br />
asort($icons);<br />
// get the key of the last icon (highest quality) in the sorted list<br />
$best = end(array_keys($icons));<br />
// now make a png<br />
if(!($png=$ico->GetIcon($best))) die(&#8220;Could not load ICO.&#8221;);<br />
else {<br />
	header(&#8220;Content-Type: image/png&#8221;);<br />
	imagepng($png);<br />
}<br />
// win!<br />
?></p>
<p>with a bit more effort, i use this to generate image preview tooltips in apache&#8217;s autoindex [=</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Home by Syte</title>
		<link>http://www.tom-reitz.com/comment-page-1/#comment-1358</link>
		<dc:creator>Syte</dc:creator>
		<pubDate>Wed, 21 Apr 2010 21:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?page_id=3#comment-1358</guid>
		<description>Cool website! 
I would like to be at a beach in Fla!</description>
		<content:encoded><![CDATA[<p>Cool website!<br />
I would like to be at a beach in Fla!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook profile box tips by Michelle</title>
		<link>http://www.tom-reitz.com/2009/02/17/facebook-profile-box-tips/comment-page-1/#comment-1350</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Tue, 20 Apr 2010 03:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.tom-reitz.com/?p=105#comment-1350</guid>
		<description>I have error 
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a4032187/public_html/app/facebook-platform/ngelitik/prof.php on line 18
with your code</description>
		<content:encoded><![CDATA[<p>I have error<br />
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a4032187/public_html/app/facebook-platform/ngelitik/prof.php on line 18<br />
with your code</p>
]]></content:encoded>
	</item>
</channel>
</rss>

