<?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>Mon, 20 May 2013 15:58:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Trimming an image]]></title>
      <guid>http://www.phpdeveloper.org/news/8965</guid>
      <link>http://www.phpdeveloper.org/news/8965</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> shows how, in his <a href="http://valokuva.org/?p=69">latest blog post</a>, to take an image and trim it down with Imagick to get rid of extra surrounding background information.
</p>
<blockquote>
<p>
Especially product images usually "suffer" from this issue; the product itself is composited on a white background and there are large areas of white around the object.
</p>
<p>
This is a simple example to demonstrate how to easily trim the areas off the image and only display the parts where the object lies.
</p>
</blockquote>
<p>
His <a href="http://valokuva.org/?p=69">example code</a>, a quick 16 line affair, takes in the test image, looks for a RGB value given and uses the built-in trimImage function to reduce its size.
</p>]]></description>
      <pubDate>Fri, 02 Nov 2007 12:58:00 -0500</pubDate>
    </item>
  </channel>
</rss>
