title: Gaussian blur with image convolution
body: <p>I've been trying to blur some text for a while now using the following code in PHP:</p>
  
  <pre><code>$image = imagecreate(150,25);
  $background = ImageColorAllocate($image, 255, 255, 255);
  $foreground = ImageColorAllocate($image, 0, 0, 0);
  
  ImageColorTransparent($image, $background);
  ImageInterlace($image, false);
  
  ImageTTFText($image, 20, 0, 0, 20, $foreground, "font.ttf", "some text");
  
  $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);
  
  imagePNG($image)
  </code></pre>
  
  <p>However the image does not blur, it only decreases in resolution, becoming grainy... <a href="http://www.jarbol.com/projects/eduRate/lib/draw.php" rel="nofollow">Demo here..</a></p>