title: php - Best way to blur images
body: <p>I'm trying to blur first image like third one,But I cant do it ! :(</p>
  
  <pre><code> header('Content-Type: image/jpeg');
  $image = imagecreatefromjpeg('1.jpg');
  for ($x=1; $x&lt;=40; $x++){
      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR,999);
  } 
      imagefilter($image, IMG_FILTER_SMOOTH,99);
      imagefilter($image, IMG_FILTER_BRIGHTNESS, 10);
  imagejpeg($image);
  imagedestroy($image);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/buXH9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/buXH9.png" alt="The Images"></a></p>