WideImage
July 31st, 2010
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:
-
$img = WideImage::load('pic.png');
-
$resized = $img->resize(200, 300);
-
$resized->saveToFile('newpic.png');
Due to WideImage’s fluent interface, this can be done as a one-liner:
-
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:
- WideImage web site (documentation, demos, and examples),
- blog entries in category WideImage (thoughts and details),
- WideImage project page at SourceForge.net (tracker, download, svn, …),
- WideImage Ohloh profile.