Issue while cropping jpg image

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
globule22

Issue while cropping jpg image

Post by globule22 »

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
globule22

Re: Issue while cropping jpg image

Post by globule22 »

Ok problem solved, big mistake, the beginning of my source image is black around coordinates (0,0) ;)
Post Reply