(PECL imagick 2.0.0)
Imagick::setImagePage — Sets the page geometry of the image
Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.
Sets the page geometry of the image.
Liefert TRUE bei Erfolg.
Wirft ImagickException bei Fehlern.
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);
?>