This would appear to be the equivalent of +repage in ImageMagick.
<?php
$ImagickObj = new Imagick($sourceImagePath);
$ImagickObj->cropImage($_POST['w'], $_POST['h'], $_POST['x'], $_POST['y']);
$ImagickObj->setImagePage($_POST['w'], $_POST['h'], 0, 0);
$ImagickObj->writeImage($cropFilePath);
?>
Imagick::setImagePage
(PECL imagick 2.0.0)
Imagick::setImagePage — Sets the page geometry of the image
Descrição
bool Imagick::setImagePage
( int $width
, int $height
, int $x
, int $y
)
Sets the page geometry of the image.
Parâmetros
- width
-
- height
-
- x
-
- y
-
Valor Retornado
Retorna TRUE em sucesso.
Erros
Dispara ImagickException em erro.
User Contributed Notes
Imagick::setImagePage
Imagick::setImagePage
Darren Burnhill
19-May-2009 09:03
19-May-2009 09:03

Imagick::setImageOrientation