title: Call to undefined method Imagick::writeImageFile()
body: <p>I've a problem with Imagick - PHP.
  I've this code : </p>
  
  <pre><code>function createImages ($src, $dst, $width, $height)
  {
          $image = new Imagick($src);
          $image-&gt;stripImage();
  
          $color = new ImagickPixel();
          $color-&gt;setColor('rgb(255,255,255)');
          if(resizeimage($image, $width, $height)) {
              $image-&gt;borderimage($color, 
              intval(($width - $image-&gt;getimagewidth()) / 2), 
              intval(($height - $image-&gt;getimageheight()) / 2));
              $image1 = new Imagick();
              $image1-&gt;newImage($width, $height, new ImagickPixel('white'));
              $image1-&gt;setImageColorspace($image-&gt;getImageColorspace());
              $image1-&gt;compositeImage($image, $image1-&gt;getImageCompose(), 0, 0);
              $image1-&gt;setImageCompressionQuality(90);
              $image1-&gt;setimagecompression(Imagick::COMPRESSION_JPEG);
              $image1-&gt;setformat('jpeg');
              $fileHandle = fopen($dst, "w");
              $image1-&gt;writeImageFile($fileHandle);
              $color-&gt;destroy();
              $image1-&gt;destroy();
          }           
          $image-&gt;destroy();
          return true;
  }
  </code></pre>
  
  <p>And this error : </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method Imagick::writeImageFile()</p>
  </blockquote>
  
  <p>I don't understand why all other methods work good, but not writeImageFile(). Can you help me please?</p>