title: Installing imagemagick in XAMPP
body: <p>So I am trying to install imagemagick on Windows. There seem to be no way to make it run. I am using PHP 5.6.20.</p>
  
  <p>I have installed imagemagick 7.0.1 in `C:\</p>
  
  <p>Then included the imagemagick dll in the extension folder from xampp.</p>
  
  <p>There are no errors when I run Apache.</p>
  
  <p>There are the following entries in phpinfo:</p>
  
  <p>Enviroment path:    </p>
  
  <pre><code>C:\ImageMagick-7.0.1-Q16;C:\Program Files\ImageMagick-7.0.1-
  </code></pre>
  
  <p>PHP Variables:</p>
  
  <pre><code>*_SERVER["PATH"]    C:\ImageMagick-7.0.1-Q16;C:\Program Files\ImageMagick-7.0.1-*
  </code></pre>
  
  <p>When I try to run the code, however, it says that the class imagick doesnt exist.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$im = new imagick( 'a.jpg' );
  
  // resize by 200 width and keep the ratio
  
  $im-&gt;thumbnailImage( 200, 0);
  
  // write to disk
  
  $im-&gt;writeImage( 'a_thumbnail.jpg' );
  </code></pre>