<?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: Using imgAreaSelect and GD library to crop and create thumbnails</title>
	<atom:link href="http://www.leonkessler.com/blog/?feed=rss2&#038;p=132" rel="self" type="application/rss+xml" />
	<link>http://www.leonkessler.com/blog/?p=132</link>
	<description>making websites</description>
	<lastBuildDate>Fri, 03 Sep 2010 20:54:33 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff H</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-79</link>
		<dc:creator>Jeff H</dc:creator>
		<pubDate>Thu, 22 Jul 2010 04:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-79</guid>
		<description>Oh wow, I can&#039;t believe I didn&#039;t see that! Alright, thanks, it works perfectly now. Also, after going through the code, there needs to be a semicolon after:

$function_to_write = &quot;Image&quot;.$gdExtension

Nothing big, just thought I should point that out.</description>
		<content:encoded><![CDATA[<p>Oh wow, I can&#8217;t believe I didn&#8217;t see that! Alright, thanks, it works perfectly now. Also, after going through the code, there needs to be a semicolon after:</p>
<p>$function_to_write = &#8220;Image&#8221;.$gdExtension</p>
<p>Nothing big, just thought I should point that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-78</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 20 Jul 2010 13:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-78</guid>
		<description>Having a quick look over the code I posted, there&#039;s quite an obvious error:

if ($source) should be changed to if ($source_handle)

That should sort the problem.

Thanks.</description>
		<content:encoded><![CDATA[<p>Having a quick look over the code I posted, there&#8217;s quite an obvious error:</p>
<p>if ($source) should be changed to if ($source_handle)</p>
<p>That should sort the problem.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff H</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-77</link>
		<dc:creator>Jeff H</dc:creator>
		<pubDate>Mon, 19 Jul 2010 19:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-77</guid>
		<description>I&#039;m receiving the following errors on your last code:

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/bathroo2/public_html/admin/crop_image.php on line 156

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/bathroo2/public_html/admin/crop_image.php on line 157</description>
		<content:encoded><![CDATA[<p>I&#8217;m receiving the following errors on your last code:</p>
<p>Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/bathroo2/public_html/admin/crop_image.php on line 156</p>
<p>Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/bathroo2/public_html/admin/crop_image.php on line 157</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shivraj singh</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-20</link>
		<dc:creator>shivraj singh</dc:creator>
		<pubDate>Sat, 03 Oct 2009 09:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-20</guid>
		<description>Can I use this code in asp.net.............</description>
		<content:encoded><![CDATA[<p>Can I use this code in asp.net&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-11</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 14 Sep 2009 22:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-11</guid>
		<description>$source_handle and $destination handle are variables that contain the return values of imagecreatefromjpeg (which can also be imagecreatefrompng, gif, etc.) and ImageCreateTrueColor function. 

Both of these functions are from gd library and return an image resource, which is then used in later gd library functions.

Both variables are defined in the last part of the code.

thanks</description>
		<content:encoded><![CDATA[<p>$source_handle and $destination handle are variables that contain the return values of imagecreatefromjpeg (which can also be imagecreatefrompng, gif, etc.) and ImageCreateTrueColor function. </p>
<p>Both of these functions are from gd library and return an image resource, which is then used in later gd library functions.</p>
<p>Both variables are defined in the last part of the code.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt H</title>
		<link>http://www.leonkessler.com/blog/?p=132&#038;cpage=1#comment-5</link>
		<dc:creator>Matt H</dc:creator>
		<pubDate>Fri, 04 Sep 2009 05:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.leonkessler.com/blog/?p=132#comment-5</guid>
		<description>Not sure if I missed it here...but is there somewhere which defines the $destination_handle and the $source_handle in your code or is that part of the GD library?</description>
		<content:encoded><![CDATA[<p>Not sure if I missed it here&#8230;but is there somewhere which defines the $destination_handle and the $source_handle in your code or is that part of the GD library?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
