<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for gif</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Fri, 10 Oct 2008 19:21:19 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Resize Image Function</title>
	<link>http://www.bytemycode.com/snippets/snippet/485/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/485/comments/</comments>
	<pubDate>Mon, 23 Oct 2006 22:48:31 +0000</pubDate>
	<dc:creator>jdenton</dc:creator>
	<category>GD, gif, images, jpeg, PHP, png, Resize</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/485/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 23rd, 2006  10:48 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/485/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/jdenton/" title="Helper">jdenton</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/GD">GD</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/gif">gif</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/images">images</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/jpeg">jpeg</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/png">png</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Resize">Resize</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/485/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>The resize_image function allows you to resize a GIF, JPEG or PNG file to any dimension you wish and put an optional black border around the image.  Here's an explanation of the arguements:<br /><br />$image_path:  The complete path to the image to be resized<br /><br />$max_width: Maximum width of the resized image. Leave 0 if you want to specify only the height and have the width auto-scale.<br /><br />$max_height: Maximum height of the resized image. Leave 0 if you want to specify only the width and have the height auto-scale.<br /><br />$file_prefix: This will prepend a string onto the resized image filename. If you want to create a thumbnail image and keep the original, set $file_prefix = 'thumb'.<br /><br />$dir:  Allows you to save the resized image to a sub directory under the $image_path directory. If you want to save thumbnail images to images/thumbs, set $dir = 'thumbs'.<br /><br />$border: boolean, 1 = border, 0 = no border<br /><br />$mime:  Image mime type. (image/jpeg, image/gif, image/png)</p>
		]]>
	</description>
</item>
	</channel>
</rss>