1--TEST--
2Testing imageconvolution() of GD library
3--CREDITS--
4Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
5#testfest PHPSP on 2009-06-20
6--SKIPIF--
7<?php
8if (!extension_loaded("gd")) die("skip GD not present");
9?>
10--FILE--
11<?php
12$image = imagecreatetruecolor(180, 30);
13
14// Writes the text and apply a gaussian blur on the image
15imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00);
16
17$gaussian = array(
18    array(1.0, 2.0, 1.0),
19    array(2.0, 4.0, 2.0),
20    array(1.0, 2.0, 1.0)
21);
22
23imageconvolution($image, $gaussian, 16, 0);
24
25ob_start();
26imagepng($image, null, 9);
27$img = ob_get_contents();
28ob_end_clean();
29
30echo md5(base64_encode($img));
31?>
32--EXPECT--
33594576a2a2a689447ffc07eb5a73f09b
34