<?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: Cropping an Image to Make Square Thumbnails in&#160;PHP</title>
	<atom:link href="http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/</link>
	<description></description>
	<lastBuildDate>Thu, 19 Aug 2010 15:49:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: McCrae</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-824</link>
		<dc:creator>McCrae</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-824</guid>
		<description>Thanks for the function</description>
		<content:encoded><![CDATA[<p>Thanks for the function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snowcore</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-823</link>
		<dc:creator>Snowcore</dc:creator>
		<pubDate>Fri, 09 Oct 2009 08:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-823</guid>
		<description>Nice function, thanks!
What about cropping image to square with rounded corners?</description>
		<content:encoded><![CDATA[<p>Nice function, thanks!<br />
What about cropping image to square with rounded corners?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-822</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 23 Sep 2009 01:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-822</guid>
		<description>Thanks a lot - your function is very useful, portable and well-written... you&#039;ve saved me some time.</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8211; your function is very useful, portable and well-written&#8230; you&#8217;ve saved me some time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Talenz</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-821</link>
		<dc:creator>Talenz</dc:creator>
		<pubDate>Mon, 14 Sep 2009 10:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-821</guid>
		<description>we are using this for the cropping of images to square. this is useful.

initially, we tried using thumbnail resizer, but it didnt work. But, this code seems to be better!</description>
		<content:encoded><![CDATA[<p>we are using this for the cropping of images to square. this is useful.</p>
<p>initially, we tried using thumbnail resizer, but it didnt work. But, this code seems to be better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory LaViska</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-820</link>
		<dc:creator>Cory LaViska</dc:creator>
		<pubDate>Sat, 05 Sep 2009 13:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-820</guid>
		<description>@Tom: The function produces a file based on $dest_image. If it returns true, the image has been created; otherwise it will be false.

You can either use header() and readfile() to display it, or simply link to it with &lt;img src=&quot;...&quot; /&gt; (if it&#039;s in a web accessible location).</description>
		<content:encoded><![CDATA[<p>@Tom: The function produces a file based on $dest_image. If it returns true, the image has been created; otherwise it will be false.</p>
<p>You can either use header() and readfile() to display it, or simply link to it with <img src="..." /> (if it&#8217;s in a web accessible location).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-819</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-819</guid>
		<description>if the function returns a true or false, how do you get the thumbnail to output on the page?  sorry, i&#039;m new at this.</description>
		<content:encoded><![CDATA[<p>if the function returns a true or false, how do you get the thumbnail to output on the page?  sorry, i&#8217;m new at this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilyasishak</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-818</link>
		<dc:creator>ilyasishak</dc:creator>
		<pubDate>Thu, 03 Sep 2009 06:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-818</guid>
		<description>dear Cory,

thank you for writing this good function. it helps me a lot.

good job!</description>
		<content:encoded><![CDATA[<p>dear Cory,</p>
<p>thank you for writing this good function. it helps me a lot.</p>
<p>good job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Vilar</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-817</link>
		<dc:creator>Sergio Vilar</dc:creator>
		<pubDate>Fri, 28 Aug 2009 17:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-817</guid>
		<description>Hi, this is a exelent function.
This help me a lot.


I spent months looking for something like this in Portuguese, because I am Brazilian, but not found.

In addition, it is my thank you for providing this function for us.

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi, this is a exelent function.<br />
This help me a lot.</p>
<p>I spent months looking for something like this in Portuguese, because I am Brazilian, but not found.</p>
<p>In addition, it is my thank you for providing this function for us.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivekanand</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-816</link>
		<dc:creator>Vivekanand</dc:creator>
		<pubDate>Thu, 27 Aug 2009 18:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-816</guid>
		<description>This has helped me a lot, saved lot of my time. Thank you very much for the effort and for spending time for us.

Thanks,
Vivek
[http://www.developersnippets.com]</description>
		<content:encoded><![CDATA[<p>This has helped me a lot, saved lot of my time. Thank you very much for the effort and for spending time for us.</p>
<p>Thanks,<br />
Vivek<br />
[http://www.developersnippets.com]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Titi</title>
		<link>http://abeautifulsite.net/blog/2009/08/cropping-an-image-to-make-square-thumbnails-in-php/#comment-815</link>
		<dc:creator>Titi</dc:creator>
		<pubDate>Sun, 23 Aug 2009 14:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://abs.lavitech.com/?p=105#comment-815</guid>
		<description>Exellent function, I was looking for a good way to do the same but finally, I think I&#039;ll choose this one.
Anyway, in your function, when you check if the image is either landscape or portrait, you define a $square_size variable by using the previous $x_offset (resp. $y_offset) one ; but the only thing you want to do is to crop the image so that the final one is a square one, so you can use the $image[1] (resp. $image[0]) to do exactly the same (i.e. &quot;$image[0] - ($x_offset * 2) = $image[1]&quot;).
Much easier I think ;)</description>
		<content:encoded><![CDATA[<p>Exellent function, I was looking for a good way to do the same but finally, I think I&#8217;ll choose this one.<br />
Anyway, in your function, when you check if the image is either landscape or portrait, you define a $square_size variable by using the previous $x_offset (resp. $y_offset) one ; but the only thing you want to do is to crop the image so that the final one is a square one, so you can use the $image[1] (resp. $image[0]) to do exactly the same (i.e. &#8220;$image[0] &#8211; ($x_offset * 2) = $image[1]&#8220;).<br />
Much easier I think ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->