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

search for in the

Imagick::setImageProfile> <Imagick::setImageOrientation
Last updated: Fri, 20 Nov 2009

view this page in

Imagick::setImagePage

(PECL imagick 2.0.0)

Imagick::setImagePageSets the page geometry of the image

Description

bool Imagick::setImagePage ( int $width , int $height , int $x , int $y )
Warning

This function is currently not documented; only its argument list is available.

Sets the page geometry of the image.

Parameters

width

height

x

y

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws ImagickException on error.



add a note add a note User Contributed Notes
Imagick::setImagePage
Darren Burnhill
19-May-2009 12:03
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::setImageProfile> <Imagick::setImageOrientation
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites