<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/gd</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 23:14:39 GMT</pubDate>
<item>
<title>(PHP) PHP GD Thumbnail Generator 0.1 - dillonchr</title>
<link>http://snipplr.com/view/57111/php-gd-thumbnail-generator-01/</link>
<description><![CDATA[ <p>Tweaked from the icant.co.uk thumbnail generator</p> ]]></description>
<pubDate>Mon, 25 Jul 2011 14:39:36 GMT</pubDate>
<guid>http://snipplr.com/view/57111/php-gd-thumbnail-generator-01/</guid>
</item>
<item>
<title>(PHP) Image Scaling within Limits (max height, max width) - dblack</title>
<link>http://snipplr.com/view/53183/image-scaling-within-limits-max-height-max-width/</link>
<description><![CDATA[ <p>This is a much cleaner way to do this than the number of examples on the web.  Every example I saw seemed to account for orientation  - horizontal vs. vertical vs. square when looking at the input.  This ignores horizontal and vertical by mapping the "long side" and "short side" and then re-mapping the variables to $h / $w at the end.</p> ]]></description>
<pubDate>Sat, 07 May 2011 10:52:08 GMT</pubDate>
<guid>http://snipplr.com/view/53183/image-scaling-within-limits-max-height-max-width/</guid>
</item>
<item>
<title>(PHP) GD Resize Crop - toreskog</title>
<link>http://snipplr.com/view/50539/gd-resize-crop/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 11 Mar 2011 19:08:32 GMT</pubDate>
<guid>http://snipplr.com/view/50539/gd-resize-crop/</guid>
</item>
<item>
<title>(PHP) Photoshop Like "Offset" Function - Jamie</title>
<link>http://snipplr.com/view/42862/photoshop-like-offset-function/</link>
<description><![CDATA[ <p>This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation.

I would like to eventually tweak the function to receive both X &amp; Y values for the offset command, but am a tad lazy right now on this fine Sunday afternoon.</p> ]]></description>
<pubDate>Mon, 25 Oct 2010 07:17:03 GMT</pubDate>
<guid>http://snipplr.com/view/42862/photoshop-like-offset-function/</guid>
</item>
<item>
<title>(PHP) Object Oriented Image Manipulation - dom111</title>
<link>http://snipplr.com/view/40519/object-oriented-image-manipulation/</link>
<description><![CDATA[ <p>I’ve been working on a CMS lately and having to create thumbnails for uploaded images is always a pain, lots of maths working out the correct sizes and such, so I’ve created a fairly small script to manipulate images in an object-oriented style.</p> ]]></description>
<pubDate>Wed, 15 Sep 2010 19:54:04 GMT</pubDate>
<guid>http://snipplr.com/view/40519/object-oriented-image-manipulation/</guid>
</item>
<item>
<title>(PHP) Auto-generate thumbnail in equivalent location (unless one has been manually created) - Kit</title>
<link>http://snipplr.com/view/21592/autogenerate-thumbnail-in-equivalent-location-unless-one-has-been-manually-created/</link>
<description><![CDATA[ <p>Not particularly novel, but quite clean. Allows you to put images in any location on the server and saves having to generate thumbnails at upload time.

The URL to this file should be:

`//`

Valid request types:

* `view` — View the image full-size (don't scale)
* `preview` — View the image at a medium scale
* `thumb` — Show a thumbnail of the image

Images can be JPEGs or PNGs. Broken URLs redirect to a designated 404 image.

Thumbnails and previews will be stored using an identical folder hierarchy inside the `thumbnails` and `previews` folders inside the images folder.</p> ]]></description>
<pubDate>Thu, 22 Oct 2009 01:22:21 GMT</pubDate>
<guid>http://snipplr.com/view/21592/autogenerate-thumbnail-in-equivalent-location-unless-one-has-been-manually-created/</guid>
</item>
<item>
<title>(PHP) image wrapper class using gd library - iTony</title>
<link>http://snipplr.com/view/9933/image-wrapper-class-using-gd-library/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Nov 2008 01:49:55 GMT</pubDate>
<guid>http://snipplr.com/view/9933/image-wrapper-class-using-gd-library/</guid>
</item>
<item>
<title>(PHP) How to Resize an Image Using PHP - Image Resizing Script - andyhartleeds</title>
<link>http://snipplr.com/view/5590/how-to-resize-an-image-using-php--image-resizing-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 28 Mar 2008 09:44:35 GMT</pubDate>
<guid>http://snipplr.com/view/5590/how-to-resize-an-image-using-php--image-resizing-script/</guid>
</item>
<item>
<title>(PHP) Convert HEX to RGB &amp;amp; RGB to HEX - Cory</title>
<link>http://snipplr.com/view/4621/convert-hex-to-rgb--rgb-to-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Jan 2008 20:27:43 GMT</pubDate>
<guid>http://snipplr.com/view/4621/convert-hex-to-rgb--rgb-to-hex/</guid>
</item>
<item>
<title>(PHP) Image Thumbnail with GD &amp;amp; GET vars - iloveitaly</title>
<link>http://snipplr.com/view/2675/image-thumbnail-with-gd--get-vars/</link>
<description><![CDATA[ <p>example: thumb.php?p=image.jpg&amp;s=45</p> ]]></description>
<pubDate>Sat, 19 May 2007 11:32:35 GMT</pubDate>
<guid>http://snipplr.com/view/2675/image-thumbnail-with-gd--get-vars/</guid>
</item>
<item>
<title>(PHP) function thumb - oso96_2000</title>
<link>http://snipplr.com/view/2158/function-thumb/</link>
<description><![CDATA[ <p>With this function you can make a thumbnail from an image.
Usage:
$image = "something.jpg";
thumb($image, 100, 100);

It can be easy modified to accept other types of images, actually only support jpeg, gif and png. Gif images lost their animation, and png or gif image lost their transparency.</p> ]]></description>
<pubDate>Sun, 11 Feb 2007 22:45:28 GMT</pubDate>
<guid>http://snipplr.com/view/2158/function-thumb/</guid>
</item>
<item>
<title>(PHP) text2image - mikeejay</title>
<link>http://snipplr.com/view/1464/text2image/</link>
<description><![CDATA[ <p>Put contents in a file called for example "button.php".
instead of using filename.png in the img tag,  use button.php?text=buttontext</p> ]]></description>
<pubDate>Wed, 25 Oct 2006 11:16:47 GMT</pubDate>
<guid>http://snipplr.com/view/1464/text2image/</guid>
</item>
<item>
<title>(PHP) Create a thumbnail maintaining aspect ratio using GD - mthorn</title>
<link>http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/</link>
<description><![CDATA[ <p>Will create a thumnail no taller or wider than the supplied size. Also contains some tips for reading and writing images using GD.</p> ]]></description>
<pubDate>Wed, 09 Aug 2006 04:57:21 GMT</pubDate>
<guid>http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/</guid>
</item>
<item>
<title>(PHP) Image Manager Componet - jkochis</title>
<link>http://snipplr.com/view/450/image-manager-componet/</link>
<description><![CDATA[ <p>makes a resized duplicate of an image</p> ]]></description>
<pubDate>Sun, 16 Jul 2006 18:04:52 GMT</pubDate>
<guid>http://snipplr.com/view/450/image-manager-componet/</guid>
</item>
<item>
<title>(PHP) PHP 3D Renderer - jkochis</title>
<link>http://snipplr.com/view/297/php-3d-renderer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 09 Jul 2006 04:48:35 GMT</pubDate>
<guid>http://snipplr.com/view/297/php-3d-renderer/</guid>
</item>
<item>
<title>(PHP) Resize Image - tylerhall</title>
<link>http://snipplr.com/view/27/resize-image/</link>
<description><![CDATA[ <p>Creates a thumbnail from an existing image. $filename is the original filename, while $tmpname is the actual filesystem name (for example, the temporary filename used in a PHP upload). Returns an image resource which you can then output to the browser, or save to a file using imagejpg(), imagepng(), etc.</p> ]]></description>
<pubDate>Wed, 30 Nov -0001 00:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/27/resize-image/</guid>
</item>
</channel>
</rss>
