Home Tutorial Php Phpgd php gd blur


Share on Google+Share on Google+
php gd blur
Posted on: October 30, 2009 at 12:00 AM
This tutorial is about to show that how to blur the text in php gd Library.


$image = imagecreatetruecolor(225,225);

imagestring($image, 10, 20, 16, 'Roseindia', 0x00ff00);

$gaussian = array(array(1.0, 2.0, 1.0), array(2.0, 4.0, 2.0), array(1.0, 2.0, 1.0));

imageconvolution($image, $gaussian, 16, 0);

imagestring($image, 10, 20, 36, 'Roseindia', 0x00ff00);

header('Content-Type: image/png');

imagepng($image, null, 9);


After running the program you will get the following output


Related Tags for php gd blur:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 30, 2009

Recommend the tutorial

Advertisements Advertisements