Share on Google+Share on Google+

php gd blur

Advertisement
This tutorial is about to show that how to blur the text in php gd Library.

<?php

$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

Advertisements

Advertisement

Posted on: October 30, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial 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.