<?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>Wed, 19 Jun 2013 05:26:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Bob Majdak's Blog: Making images transparent using Imagick - enter the pixel iterator]]></title>
      <guid>http://www.phpdeveloper.org/news/18226</guid>
      <link>http://www.phpdeveloper.org/news/18226</link>
      <description><![CDATA[<p>
In <a href="http://catch404.net/2012/07/making-images-transparent-in-imagick-enter-the-pixel-iterator/">this recent post</a> to his blog <i>Bob Majdak</i> looks at how to use the Imagick functionality to create images with transparent backgrounds.
</p>
<blockquote>
So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.
</blockquote>
<p>
He shows how to use the <a href="http://us.php.net/manual/en/class.imagickpixeliterator.php">ImagickPixelIterator</a> to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is included in the post showing how to take a <a href="http://catch404.net/wp-content/uploads/2012/07/img-trans-input.png">source image</a> and make it transparent without ending up with a white border/black background like the other version.
</p>]]></description>
      <pubDate>Mon, 16 Jul 2012 08:35:37 -0500</pubDate>
    </item>
  </channel>
</rss>
