<?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: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Thu, 28 Aug 2008 19:39:52 +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 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/485/1/</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[
				<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>