title: PHP Fatal error: Class 'Imagick' not found
body: <p>I am trying to create JPEG image from TIFF binary data. I call a SOAP service and get a TIFF binary array as follows:</p>
  
  <pre><code>$val = array(
                  "arg0" =&gt; XXX,
                  "arg1" =&gt; XXX,
          );
  
          $headerbody  = array(
                  'Username'=&gt;XXX,
                  'Password'=&gt;XXX,
          );
  $wsdl =  'wsdl services url';   
      $client = new SoapClient($wsdl);
              $soap_var_header = new SoapVar($headerbody, SOAP_ENC_OBJECT);
              $header = new SoapHeader("http://webservices.averittexpress.com/authn",'authnHeader', $soap_var_header);
              $client-&gt;__setSoapHeaders($header);
              $value = $client-&gt;getDocument($val);
  
          try {           
          $im = new Imagick();
          $im-&gt;readImageBlob($value-&gt;return);
          $im-&gt;setFormat('JPEG');
          file_put_contents('Test.jpeg', $im-&gt;getImageBlob());
          } catch (Exception $e) {
              return $e-&gt;getMessage();
          }
  </code></pre>
  
  <p>The problem is that the code fails with error:</p>
  
  <blockquote>
    <p>Fatal error: Class 'Imagick' not found</p>
  </blockquote>
  
  <p>I have enabled <code>php_imagick.dll</code> in php.ini:</p>
  
  <pre><code>; Imagick Extension
  [Imagick]
  extension = "php_imagick.dll"
  </code></pre>
  
  <p><code>php_imagick</code> library is displayed as PHP extension.</p>
  
  <p>Thanks in advance.</p>