<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 05:30:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Easy thumbnail generation using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16100</guid>
      <link>http://www.phpdeveloper.org/news/16100</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has a recent post to his blog looking at a <a href="http://www.codediesel.com/php/easy-thumbnail-generation-using-php/>simple way to create thumbnails</a> with the help of the <a href="https://github.com/masterexploder/PHPThumb">PHP_Thumb</a> tool.
</p>
<blockquote>
One of the frequent requirements in web design is that of thumbnail generation. Although there are many libraries out there I found PHP Thumb simple and quick enough to implement in a recent project. PHP Thumb is a light-weight image manipulation library aimed at thumbnail generation. It offers the ability to resize, create custom crops, or square crops from the center, and rotate the image. If the need arises you can also easily add custom functionality to the library through plugins.
</blockquote>
<p>
Code examples are, of course, <a href="http://www.codediesel.com/php/easy-thumbnail-generation-using-php/">included in the post</a> showing simple thumbnail creation, image rotation, cropping, resizing and outputting to a different format. There's a brief mention of custom plugins and the ability to chain functions.
</p>]]></description>
      <pubDate>Fri, 25 Mar 2011 08:19:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[MrPHP.com.au: Image Cache using phpThumb and .htaccess]]></title>
      <guid>http://www.phpdeveloper.org/news/11217</guid>
      <link>http://www.phpdeveloper.org/news/11217</link>
      <description><![CDATA[<p>
<i>Brett</i> send in a link to a <A href="http://mrphp.com.au/code/project/miscellaneous/image-cache-using-phpthumb-and-htaccess">new post</a> on his "Mr PHP" blog about a method he's come up with to cache images using the <a href="http://phpthumb.sourceforge.net/">phpThumb</a> library.
</p>
<blockquote>
Generate thumbs by visiting a URL such as your.com/thumbs/images/image.50x50.jpg. This will create a 50x50px thumbnail of your.com/images/image.jpg. The thumb will be stored on your server at your.com/thumbs/images/image.50x50.jpg so the next request for the same image will be loaded without loading php for ultra fast image cache.
</blockquote>
<p>
The phpThumb tool lets you dynamically resize an image and, if one does not exist for it, make a thumbnail that's output and cached. From then on the script just pulls from that local copy. He includes his code to get it working and the mod_rewrite rule that maps an image request back to it (so it's still "/images/myimage.jpg" instead of "/app/phpThumb.php?src=myimage.jpg&w=100&h=100" in the img src).
</p>]]></description>
      <pubDate>Wed, 15 Oct 2008 11:12:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Four New Articles/Tutorials]]></title>
      <guid>http://www.phpdeveloper.org/news/7816</guid>
      <link>http://www.phpdeveloper.org/news/7816</link>
      <description><![CDATA[<p>
The Bakery has four new articles/tutorials they've posted lately looking at things like thumbnail generation, data validation and add/delete behavior.
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/thumbnails-generation-with-phpthumb">Thumbnails generation with phpThumb</a> - phpThumb is a great thumbnail generator, it can generate thumbs with GD, GD2 or ImageMagick. There are many features like crop, rotate, watermark,... see all the features on the phpThumb homepage.
<li><a href="http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior">HABTM Add & Delete Behavior</a> - Many people gripe about the HABTM associations in CakePHP and how difficult it is to add or delete a single record. This behavior takes care of the task for you!
<li><a href="http://bakery.cakephp.org/articles/view/flexible-controller-and-modelpaths">Flexible controller and modelpaths</a> - This short tutorial will show you how to organize your model and controller in subfolders of the controllers and models folders!
<li><a href="http://bakery.cakephp.org/articles/view/rails-like-data-validation">Rails-like Data Validation</a> - Validate your data like in rails: http://rails.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html
</ul>
There's more great content where these came from, so be sure to check out <a href="http://bakery.cakephp.org/">the rest of The Bakery</a> for more great tips.
</p>]]></description>
      <pubDate>Thu, 10 May 2007 09:35:00 -0500</pubDate>
    </item>
  </channel>
</rss>
