<?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 on: Smart Image Resizing while Preserving Transparency With PHP and GD Library</title>
	<atom:link href="http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/</link>
	<description>by Maxim Chernyak</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:30:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: David</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-25433</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 23 Jan 2012 02:20:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-25433</guid>
		<description>&lt;p&gt;Are you getting black background? I was getting it for like 3 hours before I found solution.
I had this problem just with some images. Some were good, some had black background. I tried to dump $trnprt_indx variable with these bad images and I was getting values less than zero! Condition if ($trnprt_indx &gt;= 0) is meaningless. 
Note: I was dealing just with PNGs. Don&#039;t know if it affects GIFs.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Are you getting black background? I was getting it for like 3 hours before I found solution.
I had this problem just with some images. Some were good, some had black background. I tried to dump $trnprt_indx variable with these bad images and I was getting values less than zero! Condition if ($trnprt_indx &gt;= 0) is meaningless. 
Note: I was dealing just with PNGs. Don&#8217;t know if it affects GIFs.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Maniya</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-23040</link>
		<dc:creator>Maniya</dc:creator>
		<pubDate>Wed, 11 Jan 2012 02:29:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-23040</guid>
		<description>&lt;p&gt;Great work.. Thanks for your code.. it saved my time... :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great work.. Thanks for your code.. it saved my time&#8230; :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Pies</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-19118</link>
		<dc:creator>Pies</dc:creator>
		<pubDate>Mon, 14 Nov 2011 14:43:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-19118</guid>
		<description>&lt;p&gt;Very cool, thank you so much!&lt;/p&gt;

&lt;p&gt;There&#039;s a typo in the code on github, instead of:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;    $transparent_color  = imagecolorsforindex($image, $trnprt_indx);
    $transparency       = imagecolorallocate($image_resized, $trnprt_color[&#039;red&#039;], $trnprt_color[&#039;green&#039;], $trnprt_color[&#039;blue&#039;]);
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;it should be:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;&lt;code&gt;    $transparent_color  = imagecolorsforindex($image, $transparency);
    $transparency       = imagecolorallocate($image_resized, $transparent_color[&#039;red&#039;], $transparent_color[&#039;green&#039;], $transparent_color[&#039;blue&#039;]);
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Thanks anyway :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very cool, thank you so much!</p>

<p>There&#8217;s a typo in the code on github, instead of:</p>

<p><pre>

<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; $transparent_color &nbsp;= imagecolorsforindex($image, $trnprt_indx);<br />
&nbsp; &nbsp; $transparency &nbsp; &nbsp; &nbsp; = imagecolorallocate($image_resized, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);</div></div>

</pre></p>

<p>it should be:</p>

<p><pre>

<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; $transparent_color &nbsp;= imagecolorsforindex($image, $transparency);<br />
&nbsp; &nbsp; $transparency &nbsp; &nbsp; &nbsp; = imagecolorallocate($image_resized, $transparent_color['red'], $transparent_color['green'], $transparent_color['blue']);</div></div>

</pre></p>

<p>Thanks anyway :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael L Watson</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-18645</link>
		<dc:creator>Michael L Watson</dc:creator>
		<pubDate>Mon, 07 Nov 2011 22:39:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-18645</guid>
		<description>&lt;p&gt;Nice work, thanks a lot!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice work, thanks a lot!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mehul Batliwala</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-16992</link>
		<dc:creator>Mehul Batliwala</dc:creator>
		<pubDate>Tue, 27 Sep 2011 09:26:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-16992</guid>
		<description>&lt;p&gt;Very good work. Thank you. :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very good work. Thank you. :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Toxicroadkill</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-16680</link>
		<dc:creator>Toxicroadkill</dc:creator>
		<pubDate>Mon, 19 Sep 2011 22:30:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-16680</guid>
		<description>&lt;p&gt;GREAT!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>GREAT!!</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: GDライブラリで透過形式の画像をリサイズするのに便利な関数 &#171; redcocker&#039;s notebook</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-16364</link>
		<dc:creator>GDライブラリで透過形式の画像をリサイズするのに便利な関数 &#171; redcocker&#039;s notebook</dc:creator>
		<pubDate>Sat, 10 Sep 2011 16:58:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-16364</guid>
		<description>&lt;p&gt;[...] Smart Image Resizing while Preserving Transparency With PHP and GD Library [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>[...] Smart Image Resizing while Preserving Transparency With PHP and GD Library [...]</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: logan</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-15400</link>
		<dc:creator>logan</dc:creator>
		<pubDate>Tue, 16 Aug 2011 17:23:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-15400</guid>
		<description>&lt;p&gt;hearty thanks for you...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<div style=""><p></p><p>hearty thanks for you&#8230;</p></div>]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-9807</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 07 Apr 2011 04:06:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-9807</guid>
		<description>&lt;p&gt;You saved the day sir! thank you so much for posting this online!  You&#039;re the only person who has posted a script that actually works on PNGs with full opacity.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You saved the day sir! thank you so much for posting this online!  You&#8217;re the only person who has posted a script that actually works on PNGs with full opacity.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Richy</title>
		<link>http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/comment-page-2/#comment-8729</link>
		<dc:creator>Richy</dc:creator>
		<pubDate>Thu, 10 Mar 2011 08:51:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-8729</guid>
		<description>&lt;p&gt;Class doesn&#039;t work on my server. I get the following error message:&lt;/p&gt;

&lt;p&gt;Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#039;}&#039; in /home/vhosts/mysite.nl/httpdocs/096/SmartImage.class.php on line 16&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Class doesn&#8217;t work on my server. I get the following error message:</p>

<p>Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#8216;}&#8217; in /home/vhosts/mysite.nl/httpdocs/096/SmartImage.class.php on line 16</p>]]></content:encoded>
	</item>
</channel>
</rss>

