1--TEST-- 2Testing imageconvolution() of GD library 3--CREDITS-- 4Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com> 5#testfest PHPSP on 2009-06-20 6--EXTENSIONS-- 7gd 8--SKIPIF-- 9<?php 10if (!(imagetypes() & IMG_PNG)) { 11 die("skip No PNG support"); 12} 13?> 14--FILE-- 15<?php 16$image = imagecreatetruecolor(180, 30); 17 18// Writes the text and apply a gaussian blur on the image 19imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00); 20 21$gaussian = array( 22 array(1.0, 2.0, 1.0), 23 array(2.0, 4.0, 2.0), 24 array(1.0, 2.0, 1.0) 25); 26 27imageconvolution($image, $gaussian, 16, 0); 28 29include_once __DIR__ . '/func.inc'; 30test_image_equals_file(__DIR__ . '/imageconvolution_basic.png', $image); 31?> 32--EXPECT-- 33The images are equal. 34