php gd blur


 

php gd blur

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

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

Ads