Blog Post RSS ?

Blogs » PHP » PHP extension for Cairo graphics library
 

PHP extension for Cairo graphics library

by Harry Fuecks

Thanks to tip off from Jared “Ren” Williams (is that you? – any link?) here – the Cairo wrapper extension by Hartmut Holzgraefenice demo.

Cairo is the “next generation” vector graphics library for Linux and very cool to have it available in PHP. Also cool about the extension was created using PEAR::CodeGen_PECL, which Hartmut describes here: look Mum – no C! (well almost).

This raises the question of whether it’s time to depreciate GD? As far as I’m aware, it and the PCRE extension are the two main problem children preventing PHP from being thread safe. It may be possible to replace PCRE and preserve backwards compability, with ICU regexes, which claim to based on Perl’s regular expressions. Dropping GD would be much more painful but with Cairo and the imagick extension, there might be enough to keep everyone happy. This is in the interest of running PHP under Apache mpm. Would be interested to hear thoughts / opinions on how realistic that is?

Side note: my dumb view of the difference between GD and imagemagick is the former is more for image creation while the latter is more for manipulating existing images.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. Free PHP Webinar: How to Increase Performance with Caching Zend are running a free webinar today, with a live...
  2. How to Install PHP on Windows In his final installation tutorial, Craig provides a step-by-step guide...
  3. New Release: CodeBurner for Firefox. Grab the Extension, Get a FREE eBook! Firefox users rejoice! We're very excited to announce CodeBurner for...
  4. Installing PHP on Windows Just Got Easier Have you ever felt frustrated when setting up a PHP/MySQL...
  5. How to Install PHP 5.3 on Windows PHP 5.3 is the most significant update since version 5.0....

This post has 14 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...