<?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>Thu, 20 Jun 2013 03:05:22 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Padding thumbnail with color]]></title>
      <guid>http://www.phpdeveloper.org/news/9406</guid>
      <link>http://www.phpdeveloper.org/news/9406</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has another image tutorial posted to his blog today - this time the focus is on <a href="http://valokuva.org/?p=92">padding a thumbnail</a> with the color of your choice automatically.
</p>
<blockquote>
Today's example originates from a question asked by a user. How do I thumbnail the image inside given dimensions proportionally and fill the "blank" areas with a color? Well, the answer is here.
</blockquote>
<p>
His code pulls in the source image, generates a thumbnail from it and makes a new image (the background) that's a bit bigger than the thumbnail. From there, the thumbnail is laid on top and the whole thing is output as another PNG. An example of the input and output image is included.
</p>]]></description>
      <pubDate>Fri, 11 Jan 2008 12:05:00 -0600</pubDate>
    </item>
  </channel>
</rss>
