PHPImage

Usage Require
PHP5
GD2 (with antilias)
PHP Sample
require('../class.PHPImage.php');
$matrix = '1 2 1  4 2 4  1 2 1';
$image = new PHPImage('php.gif');
$image->convolution($matrix);
$image->format = 'png';
$image->display();
Use of cache
$image = new PHPImage();
$image->cachetime = 86400*365*10; // 10 years
if($image->cacheok($source, $cached_image)) {
	$image->display($cached_image);
}
else {
	$image->loadfromfile($source);
	// put here your image processing
	// it can be : resize, crop, effects, ...
	$image->display($cached_image);
}
exit;