Search code examples
phpgdantialiasing

PHP GD Stronger Antialias


I'm using GD to plot some simple charts from array point data.. Trying to optimize the appearance - even using imageantialias , there is still a significantly notice-able jag in the line between the points. What's a better way to PHP GD antialias a line between two points?


Solution

  • It looks like the simplest solution is to unzip JPGraph (http://jpgraph.net), and use the chart classes -- the lines come out amazingly anti-aliased, and dare I say, pretty!

    (ImageMagick is a pain to set up on CentOS servers - the above methods of blowing up and reducing does not seem to improve antialiasing..)