Sorry if it's a stupid question but I encounter a strange problem with clone().
This code produces an empty document:
Code: Select all
$image = new Imagick();
$image->readImage($myFile);
$imgCopy = $image->clone();
$imgCopy->writeImage($destinationFile);
Code: Select all
$image = new Imagick($myFile);
$imgCopy = $image->clone();
$imgCopy->writeImage($destinationFile);
Thanks for your help.
PHP Version 5.2.6-3ubuntu4.5
module version 2.1.1-rc1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.4.5 2009-06-04 Q16 OpenMP http://www.imagemagick.org