<?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, 22 May 2013 11:18:59 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Charting with pChart]]></title>
      <guid>http://www.phpdeveloper.org/news/17209</guid>
      <link>http://www.phpdeveloper.org/news/17209</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new post highlighting the <a href="http://phpmaster.com/charting-with-pchart/">use of pChart</a> to graph out the data from your PHP application. <a href="http://www.pchart.net/download">pChart</a> provides an easy interface to draw graphs with GD, supporting alpha transparency, shadowing, spline/cubic curves and much more.
</p>
<blockquote>
Created and maintained by Jean-Damien Pogolotti, a systems engineer based in Toulouse, France, pChart is a library that creates anti-aliased charts and graphs using PHP. It's object-oriented code has been recently redesigned and makes it easy to add beautiful, eye-catching data. The library is free for non-profit use and for inclusion in GPL distributed software; licensing plans for other uses start at just 50 Euro. In this article I'll take you through installing pChart and using it to generate a basic chart, line chart and plot graph.
</blockquote>
<p>
He walks you through the <a href="http://www.pchart.net/download">download</a> and installation of the tool as well as showing the code you'll need to include to get started with a first script. Their examples show how to create both single- and three-series charts with some sample data and some <a href="http://cdn.phpmaster.com/files/2011/10/pchart-011.png">screenshots</a> <a href="http://cdn.phpmaster.com/files/2011/10/pchart-021.png">of</a> <a href="http://cdn.phpmaster.com/files/2011/10/pchart-041.png">output</a>.
</p>]]></description>
      <pubDate>Mon, 05 Dec 2011 08:50:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Creating a Smooth Curve Graphs with PHP and GD]]></title>
      <guid>http://www.phpdeveloper.org/news/17038</guid>
      <link>http://www.phpdeveloper.org/news/17038</link>
      <description><![CDATA[<p>
On Script-Tutorials.com there's a new tutorial posted showing you how you can <a href="http://www.script-tutorials.com/smooth-curve-graphs-with-php-and-gd/">get better curves on your graphs</a> with PHP and GD (the key is in the "CubicSplines" class, providing a few extra calculations to make "splines", a mathematical method for <a href="http://en.wikipedia.org/wiki/Spline_(mathematics)">smoothing out values</a>).
</p>
<blockquote>
Today I have new article for PHP. I will tell you about drawing graphs with GD. Plus - we will smooth our graph with curve lines using cubic splines interpolation method. You can read more about method at <a href="http://en.wikipedia.org/wiki/Cubic_splines">Wikipedia</a>.
</blockquote>
<p>
All of the code is included in the post, ready for cop and pasting - the HTML, CSS plus the PHP to generate the graph, plot the points and apply the cubic splines values. You can check out a <a href="http://www.script-tutorials.com/demos/169/index.html">live demo</a> of it in action or just <a href="http://www.script-tutorials.com/demos/169/source.zip">download the code</a> and get started on your own.
</p>]]></description>
      <pubDate>Tue, 25 Oct 2011 11:27:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[.Net Magazine: Create an SVG data visualization with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16853</guid>
      <link>http://www.phpdeveloper.org/news/16853</link>
      <description><![CDATA[<p>
On the .net magazine site (yes, really) there's a recent post from <i>Brian Suda</i> about <a href="http://www.netmagazine.com/tutorials/create-svg-data-visualisation-php">creating SVG images with PHP</a> thanks to the GD functionality that's included in every release.
</p>
<blockquote>
If you're working online, then canvas springs to mind. It allows you to draw raster graphics quickly and easily. If you want, there are also plenty of image code libraries that can generate GIFs, JPEGs and PNGs on request. But what if your target isn't always online? What if you're aiming for print? Then you could use a raster graphic, but it would need to be pretty large. A better solution is to create a vector-based image format from your code. This is where SVG (Scalable Vector Graphics) steps in.
</blockquote>
<p>
He starts by explaining a bit about SVG and what it is for those that haven't worked with it before. He givesn an example of a <a href="http://hint.fm/projects/wired2008/">poster from Wired</a> showing circles with colors from their covers over the last 15 years. He shows how to do something similar with images of the .net magazine covers, pulling out the color frequency with the <a href="http://php.net/imagecolorat">imagecolorat</a> function. Toss in a bit of markup and some formatting of the color output and you'll get circles with concentric rings with the most prominent colors ending up the largest. You can <a href="http://media.netmagazine.com/files/images/2011/08/5.gif">see his result here</a>.
</p>]]></description>
      <pubDate>Tue, 13 Sep 2011 12:13:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Watermark processing on images using PHP and GD]]></title>
      <guid>http://www.phpdeveloper.org/news/16840</guid>
      <link>http://www.phpdeveloper.org/news/16840</link>
      <description><![CDATA[<p>
On the Script-Tutorials blog today there's a new tutorial posted showing you how to <a href="http://www.script-tutorials.com/watermark-processing-on-images-using-php-and-gd/">easily add watermarks to your images</a> dynamically, either as a part of a cache generation or on upload.
</p>
<blockquote>
I will show you how to use GD library. And, main task today is adding watermark to image and generate result as PNG image into browser. We will using PHP and GD library. This is nice library to work with images at server side. Also (as additional tasks) I will draw little frame over image and will draw some text. Between, you can use this method (of adding watermarks in realtime) to protect original photos.
</blockquote>
<p>
Full code for the script is included in the post, showing the combining of two images into the one finished product. The code is also <a href="http://www.script-tutorials.com/demos/137/source.zip">available for download</a> if you'd like to get hacking right away.
</p>]]></description>
      <pubDate>Fri, 09 Sep 2011 12:36:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Philip Norton's Blog: Desaturate Images With PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16828</guid>
      <link>http://www.phpdeveloper.org/news/16828</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Philip Norton</i> shows how to <a href="http://www.hashbangcode.com/blog/desaturate-images-php-593.html">desturate images with PHP</a> using the already built-in <a href="http://php.net/gd">GD libraries</a> and the <a href="http://php.net/imagecopymergegray">imagecopymergegray</a> function.
</p>
<blockquote>
To desaturate an image means to remove all non-greyscale colours from it, essentially creating a black and white version. To do this you can use the function imagecopymergegray(), which is part of the GD image library. This function is a little difficult to figure out, but what is does is sample one image into another and optionally changing the amount of colours that are kept during the sampling process. The function can be made to sample just a section of the image, or the whole thing. 
</blockquote>
<p>
He also offers an alternative method that uses <a href="http://php.net/imagefilter">imagefilter</a> instead, passing it the IMG_FILTER_GRAYSCALE flag. Included is a full block of code for a method he recently included in a WordPress site to dynamically create thumbnails.
</p>]]></description>
      <pubDate>Wed, 07 Sep 2011 12:51:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Generating a color palette from a image in php]]></title>
      <guid>http://www.phpdeveloper.org/news/16500</guid>
      <link>http://www.phpdeveloper.org/news/16500</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has posted a simple method for <a href="http://www.codediesel.com/php/generating-color-palette-from-aimage/">creating a color palette</a> from a given image using just PHP and GD.
</p>
<blockquote>
In the <a href="http://www.codediesel.com/php/taking-screenshots-of-websites-in-php/">previous post</a> we saw how we can generate a screenshot from a url. In this post we will see how we can create a color palette of the screenshot (or any other image for that matter) using PHP and GD. This can be useful if you need to quickly get the color scheme of a website or a image. Below are a few example images and their palettes generated using the program.
</blockquote>
<p>
With the help of <a href="http://www.codediesel.com/downloads/palette">his code</a> it's as easy as a call on a GetMostCommonColors object (get_color) to return the hex codes for the values found most. Also included in the post is a sample snippet showing how to pull the details from the file and output it in a grid similar <a href="http://www.codediesel.com/wp-content/uploads/2011/06/Image1.gif">to this</a>.
</p>]]></description>
      <pubDate>Tue, 21 Jun 2011 13:09:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Smashing Magazine: Image Manipulation With jQuery and PHP GD]]></title>
      <guid>http://www.phpdeveloper.org/news/16150</guid>
      <link>http://www.phpdeveloper.org/news/16150</link>
      <description><![CDATA[<p>
Smashing Magazine has a new post today about <a href="http://www.smashingmagazine.com/2011/04/05/image-manipulation-with-jquery-and-php-gd/">using jQuery and GD to manipulate images</a> to upload an image, crop it and save that version to the remote server.
</p>
<blockquote>
One of the numerous advantages brought about by the explosion of jQuery and other JavaScript libraries is the ease with which you can create interactive tools for your site. When combined with server-side technologies such as PHP, this puts a serious amount of power at your finger tips. [...] Sure, there are plugins out there that you can use to do this; but this article aims to show you what's behind the process. You can <a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/04/smashing_image_manipulation.zip">download the source files</a> for reference.
</blockquote>
<p>
They walk you through the little bit of setup you'll need before things will be working and then move right into the upload form and PHP handling that goes with it. The Javascript that goes with it is all home-grown (not a plugin) and cleverly uses a DIV to simulate the bounding box for the crop.
</p>]]></description>
      <pubDate>Tue, 05 Apr 2011 12:02:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: Image Resizing Made Easy with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14214</guid>
      <link>http://www.phpdeveloper.org/news/14214</link>
      <description><![CDATA[<p>
New from NETTUTS.com there's a recent tutorial showing you how to use the GD graphics library (bundled with PHP) to <a href="http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php">resize images</a> on the fly.
</p>
<blockquote>
Ever wanted an all purpose, easy to use method of resizing your images in PHP? Well that's what PHP classes are for '" reusable pieces of functionality that we call to do the dirty work behind the scenes. We're going to learn how to create our own class that will be well constructed, as well as expandable. Resizing should be easy.
</blockquote>
<p>
The simple eleven-step process (don't worry, it sounds worse than it is) has you go from a basic image and, with the help of a custom PHP class, create a resized image based on a type such as "landscape", "auto" or "exact". Full code is included for you to cut and paste or you can <a href="http://nettuts.s3.cdn.plus.org/607_resize/resize-example.zip">download the source</a> and have the full code ready and waiting.
</p>]]></description>
      <pubDate>Fri, 19 Mar 2010 08:47:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Create a CAPTCHA Script with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13787</guid>
      <link>http://www.phpdeveloper.org/news/13787</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's <a href="http://www.phpbuilder.com/columns/Octavia_Anghel010510.php3">a new tutorial posted</a> helping you create a simple CAPTCHA image you can use in your forms to help to somewhat secure them from scripts out there that might abuse them.
</p>
<blockquote>
CAPTCHA protection is used on web site forms and works by generating a random string, writing it to an image, then storing the string inside of a session. Then, the site checks the CAPTCHA when the form is submitted. In this article, you will learn how to make your own simple CAPTCHA image using PHP. You will create the CAPTCHA image step by step.
</blockquote>
<p>
Their example uses numbers, lowercase letters and a few other characters to create the distorted image. The tutorial shows you how to take this character set, pull out a few randomized values and push them into a dynamically created image with PHP's built-in GD functionality. They also include a brief script showing how to use it in the form for validation of the submission.
</p>]]></description>
      <pubDate>Wed, 06 Jan 2010 11:49:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Maurice Svay's Blog: Face detection in pure PHP (without OpenCV)]]></title>
      <guid>http://www.phpdeveloper.org/news/12731</guid>
      <link>http://www.phpdeveloper.org/news/12731</link>
      <description><![CDATA[<p>
<i>Maurice Svay</i> has <a href="http://svay.com/blog/index/post/2009/06/19/Face-detection-in-pure-PHP-(without-OpenCV)">a new blog post</a> that includes a script he's developed to perform facial recognition (detect faces in images) with PHP without the need of the <a href="http://opencv.willowgarage.com/wiki/">Open-CV library</a>.
</p>
<blockquote>
OpenCV seems to perform well but you need to be able to install it on your server. In my case, I wanted to have a pure PHP solution, so it can work with most hosts. So I started to think about implementing it myself. [...] I kept searching and finally found a canvas+javascript implementation of face detection at <a href="http://blog.kpicturebooth.com/?p=8">http://blog.kpicturebooth.com/?p=8</a>. The code looked fairly compact and simple. Shouldn't be hard to port to PHP.
</blockquote>
<p>
The class takes in the filename of an image (just JPG, but could easily be adapted) and <a href="http://svay.com/experiences/face-detection/detection.dat">a data file</a> to use to run the image through the GD image library and output a JPG similar to <a href="http://svay.com/blog/public/images/2009-06-19/detection.jpg">this</a> with the face highlighted by a red square.
</p>]]></description>
      <pubDate>Mon, 22 Jun 2009 12:53:22 -0500</pubDate>
    </item>
  </channel>
</rss>
