title: Convert image to sketch using php imagick
body: <p>Trying to achieve sketch effect using php, but unable to get desired output.</p>
  
  <p>Tried with </p>
  
  <pre><code>$im1-&gt;sketchimage(2, 1, -20);
  </code></pre>
  
  <p>but getting blur sort of image only.</p>
  
  <p>Also, looked out and found </p>
  
  <pre><code>*s = Read-File-Into-Image("/path/to/image")
  *g = ConvertToGrayScale(s)
  *i = Invert Colors(g)
  *b = ApplyGaussianBlur(i)
  *result = Colour Dodge Blend Merge(b,g)
  </code></pre>
  
  <p>and tried</p>
  
  <pre><code>$im1-&gt;edgeImage(2);
  $im1-&gt;contrastStretchImage(30, 500);
  $im2 = $im1;
  $im1-&gt;modulateImage(100, 20, 50); 
  $im1-&gt;negateImage(FALSE);
  $im1-&gt;gaussianBlurImage(5, 1, FALSE);
  $im1-&gt;compositeImage($im2, imagick::COMPOSITE_COLORDODGE, 0, 0 );
  </code></pre>
  
  <p>still not getting the desired output. </p>