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

search for in the

Imagick::setImageProfile> <Imagick::setImageOrientation
[edit] Last updated: Sat, 25 May 2013

view this page in

Imagick::setImagePage

(PECL imagick 2.0.0)

Imagick::setImagePageSets 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

Returns TRUE on success.

Erros

Throws ImagickException on error.



add a note add a note User Contributed Notes Imagick::setImagePage - [1 notes]
up
0
Darren Burnhill
4 years ago
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);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites