[HELP] Newbie cloning problem
Posted: 2010-06-09T06:31:19-07:00
Hello,
Sorry if it's a stupid question but I encounter a strange problem with clone().
This code produces an empty document:
Though, $myFile and $destinationFile are valid because this code works:
Am I doing something wrong?
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
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