<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ItHowTo.ro &#187; php thumbnails gd</title>
	<atom:link href="http://www.ithowto.ro/tag/php-thumbnails-gd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ithowto.ro</link>
	<description>Blog about IT realated stuff by WSS</description>
	<lastBuildDate>Tue, 06 Jul 2010 16:35:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HowTo: Create Picture Thumbnails with PHP and GD</title>
		<link>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/</link>
		<comments>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 18:35:21 +0000</pubDate>
		<dc:creator>gkoo</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[php thumbnails gd]]></category>

		<guid isPermaLink="false">http://www.ithowto.ro/?p=42</guid>
		<description><![CDATA[Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.
Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from phpthumb.sourceforge.net.
First [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, first of all I&#8217;d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.</p>
<p>Now, here&#8217;s a nice PHP plugin you can use to generate thumbnails in PHP. It&#8217;s called phpThumb and you can get it from <a href="http://sourceforge.net/projects/phpthumb/"><strong></strong></a><strong><a title="Php Thumb" href="http://phpthumb.sourceforge.net/" target="_blank">phpthumb.sourceforge.net</a>.</strong></p>
<p>First of all take note that this plugin uses the <strong><a title="GD Graphics Library" href="http://www.boutell.com/gd/">GD</a> </strong>or <strong><a title="ImageMagick" href="http://www.imagemagick.org/">ImageMagick</a> </strong>library so be sure you have at least one of them installed on your server/host. I&#8217;m using GD and it works just fine. ImageMagick has some extra features that I didn&#8217;t need, so be sure to check the official site for more details.</p>
<p><strong>How To use phpThumb:</strong></p>
<p>Copy the contents of the plugin somwhere in your site&#8217;s directory ( eg. /lib/phpThumb/ )</p>
<p>Rename the <strong>phpThumb.config.php.default</strong> to <strong>phpThumb.config.php</strong>. I didn&#8217;t modify this config at all but you might take a look inside it if you&#8217;d like to setup various parameters.</p>
<p>Having that done you can easily generate thumbnails like this:</p>
<p><em>&lt;img src=&#8221;lib/phpthumb/phpThumb.php?src=<strong>nameofthefile.jpg</strong>&amp;w=150&amp;h=50&amp;zc=1&#8243;  alt =&#8221;someText&#8221; /&gt;</em></p>
<p><strong>w </strong>stands for width of course and <strong>h </strong>stands for height. <strong>zc </strong>means zoomCrop.</p>
<p>The plugin has a lot of other options and tweaks to play with, check&#8217;em out <a title="Functions of phpThumb" href="http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php" target="_blank">here</a>.</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ithowto.ro/2009/01/howto-create-picture-thumbnails-with-php-and-gd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
