<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; gd2</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/gd2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>8 Cool Functions in the GD2 extension</title>
		<link>http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/</link>
		<comments>http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 07:35:38 +0000</pubDate>
		<dc:creator>Akash Mehta</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[gd2]]></category>

		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/</guid>
		<description><![CDATA[Most PHP developers have at least heard of GD2; thanks to its prolific use in CAPTCHA generation, the image functions in PHP are standard practice for many. But the extension&#8217;s uses don&#8217;t end there. After the fold, here are eight cool things you probably weren&#8217;t aware could be done with GD2, and might be useful [...]]]></description>
			<content:encoded><![CDATA[<p>Most PHP developers have at least heard of GD2; thanks to its prolific use in CAPTCHA generation, the image functions in PHP are standard practice for many. But the extension&#8217;s uses don&#8217;t end there. After the fold, here are eight cool things you probably weren&#8217;t aware could be done with GD2, and might be useful for your web applications.<span id="more-10"></span></p>
<p>(Note that a few of these may not be available depending on your PHP/GD setup, check the manual)</p>
<ol>
<li>Get the size of an icon file, with getimagesize() (also works on all standard image formats)</li>
<li>Apply a gaussian-blur to an image, with imagefilter()</li>
<li>Rotate an image, with imagerotate()</li>
<li>Flood-fill an area of an image, with imagefill()</li>
<li>Grayscale an image, also with imagefilter()</li>
<li>Draw polygons and arcs  &#8212; maybe for mathematical diagram? &#8212; with imagepolygon() and imagearc()</li>
<li>Copy and resize a section of an image, with imagecopyresized()</li>
<li>&#8220;Sketchify&#8221; images for a pencil-illustration-style effect, also with imagefilter() (see a pattern here?)</li>
</ol>
<p>The <a href="http://phpied.com/" target="_blank">phpied blog</a> has some <a href="http://www.phpied.com/image-fun-with-php-part-2/" target="_blank">cool demos of the imagefilter() function</a> in particular.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d10" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/&amp;title=8+Cool+Functions+in+the+GD2+extension" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/&amp;title=8+Cool+Functions+in+the+GD2+extension" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/&amp;title=8+Cool+Functions+in+the+GD2+extension" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/cool-php-gd2-functions-10/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
