downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::cropThumbnailImage> <Imagick::convolveImage
Last updated: Fri, 14 Aug 2009

view this page in

Imagick::cropImage

(PECL imagick 2.0.0)

Imagick::cropImageExtrait une région d'une image

Description

bool Imagick::cropImage ( int $width , int $height , int $x , int $y )
Avertissement

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.

Extrait une région d'une image.

Liste de paramètres

width

La largeur du retaillage

height

La hauteur du retaillage

x

L'abscisse, coordonnée X, de la région retaillée, coin haut gauche

y

L'ordonnée, coordonnée Y, de la région retaillée, coin haut gauche

Valeurs de retour

Returns TRUE on success.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.



add a note add a note User Contributed Notes
Imagick::cropImage
vincent dot hoen at gmail dot com
02-Aug-2007 01:35
There is an easiest way to crop an image : 

$picture = new Imagick('animated_gif.gif');

foreach($picture as $frame){
    $frame->cropImage($width, $height, $x, $y);
}
vincent dot hoen at gmail dot com
01-Aug-2007 03:39
If you're working with animated gif you might want to process this way (Probably not the best, but at least it works) :

$picture = new Imagick('animated_gif.gif');

//Crop first image
$picture->cropImage($width, $height, $x, $y);

//Crop every other image
while($picture->hasNextImage()){
    $this->nextImage();
    $this->cropImage($width, $height, $x, $y);
}

//display image
$picture->getImageBlob();

Imagick::cropThumbnailImage> <Imagick::convolveImage
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites