WideImage

January 22nd, 2012

WideImage is an object-oriented PHP5 library, a layer over the GD2 extension, that provides an easy to use interface for manipulating images. It’s unit-tested with Simpletest, but code coverage isn’t 100%. I’ll work on that in time, but the code is fairly stable — the library hasn’t had a single major bug since first beta (September 2007).

Here’s an example of how it’s used:

  1. $img = WideImage::load('pic.png');
  2. $resized = $img->resize(200, 300);
  3. $resized->saveToFile('newpic.png');

Due to WideImage’s fluent interface, this can be done as a one-liner:

  1. WideImage::load('pic.png')->resize(200, 300)->saveToFile('newpic.png');

More examples and documentation can be found on WideImage web site. For download or SVN export, see the download page at WideImage web site.

Find out more about WideImage:

Comments are closed.