Issue while cropping jpg image
Posted: 2009-07-16T14:03:39-07:00
Hi,
I have a little issue with imagick
my information about imagick are:
imagick module version
2.0.1
imagick classes :
Imagick, ImagickDraw, ImagickPixel,
ImagickPixelIterator
ImageMagick version :
ImageMagick 6.3.7 02/19/08 Q16
http://www.imagemagick.org
ImageMagick release date
02/19/08
ImageMagick Number of supported
formats:
179
i simply try to crop an image with php with this code
$image = new Imagick();
$image->readImage('essai.jpg');
$image -> cropImage(250,250,0,0);
$image -> writeImage('final.jpg');
$image -> clear();
$image -> destroy();
and i always have my final?jpg file as a black image
anyone has an idea?
Regards
I have a little issue with imagick
my information about imagick are:
imagick module version
2.0.1
imagick classes :
Imagick, ImagickDraw, ImagickPixel,
ImagickPixelIterator
ImageMagick version :
ImageMagick 6.3.7 02/19/08 Q16
http://www.imagemagick.org
ImageMagick release date
02/19/08
ImageMagick Number of supported
formats:
179
i simply try to crop an image with php with this code
$image = new Imagick();
$image->readImage('essai.jpg');
$image -> cropImage(250,250,0,0);
$image -> writeImage('final.jpg');
$image -> clear();
$image -> destroy();
and i always have my final?jpg file as a black image
anyone has an idea?
Regards