<?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>Tue, 18 Jun 2013 01:29:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Andreas Gohr's Blog: Calculating Color Contrast with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11045</guid>
      <link>http://www.phpdeveloper.org/news/11045</link>
      <description><![CDATA[<p>
In <A href="http://www.splitbrain.org/blog/2008-09/18-calculating_color_contrast_with_php">this new post</a> to his blog <i>Andreas Gohr</i> shares three handy functions he's come up with to check colors in an image with PHP.
</p>
<blockquote>
A good designer will choose high contrast colors fer backgrounds and texts without hesitation. But sometimes no human is involved in choosin' th' colors. For example when colors are assigned in a (pseudo) random manner. [...] After some googlin' I found a page explainin' different <A href="http://www.wat-c.org/tools/CCA/1.1/">color contrast algorithms</a>. Load the cannons! I used th' data from that page and implemented 3 color check functions in PHP.
</blockquote>
<p>
You can see a <A href="http://www.splitbrain.org/_static/color/index.php">live demo</a> of the script at work showing off the three color-finding functions: color difference, brightness difference and the luminosity contrast. There's also a method for calculating the Pythagorean distance between the colors included now too.
</p>]]></description>
      <pubDate>Fri, 19 Sep 2008 09:37:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Filtering Image Streams with the GD Library in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8535</guid>
      <link>http://www.phpdeveloper.org/news/8535</link>
      <description><![CDATA[<p>
DevShed concludes their series on using the GD graphics libraries in PHP with <a href="http://www.devshed.com/c/a/PHP/Filtering-Image-Streams-with-the-GD-Library-in-PHP/">thie new article</a> focusing on the use of some of the simple filtering functionality the library has to offer.
</p>
<blockquote>
In this article I'm going to demonstrate how the GD library can be used to apply some basic graphic filters (yes, like Photoshop, but much simpler) by utilizing the versatility of a brand new function called "imagefilter()". As you'll see shortly, with this function it is possible to reverse, blur and highlight the colors of a determined image, as well as convert it to its grayscale version, among other things.
</blockquote>
<p>
They use the imagefilter function in a few different examples - <a href="http://www.devshed.com/c/a/PHP/Filtering-Image-Streams-with-the-GD-Library-in-PHP/1/">altering the colors</a> in an image, working with <a href="http://www.devshed.com/c/a/PHP/Filtering-Image-Streams-with-the-GD-Library-in-PHP/2/">contrast and brightness</a> and various other filters (like smoothing, embossing, blurring and colorizing).
</p>]]></description>
      <pubDate>Mon, 27 Aug 2007 11:25:00 -0500</pubDate>
    </item>
  </channel>
</rss>
