Functions page: 19

Set image orientation
Sets the image orientation.
None

Set image page
Sets the page geometry of the image.
None

Set image profile
Adds a named profile to the Imagick object.
None



If a profile with the same name already exists, it is replaced. This method differs from the ProfileImage() method in that it does not apply any CMS color profiles.
Set image property
Sets a named property to the image.
The EXIF make is now set to Imagick


bool setImageProperty ( string $name , string $value )

<?php 
$im 
= new Imagick();
$im->newImage(300200"black");
$im->setImageProperty('Exif:Make''Imagick');
echo 
$im->getImageProperty('Exif:Make');
 
?>
Set image red primary
Sets the image chromaticity red primary point.
None

Set image rendering intent
Sets the image rendering intent.
None

Set image resolution
Sets the image resolution.
None

Set image scene
Sets the image scene.
None

Set image ticks per second
Sets the image ticks-per-second.
None

Set image type
Sets the image type.
Set image type example

bool setImageType ( int $image_type )

<?php 
$im 
= new Imagick ($input);
$im->setImageType imagick::IMGTYPE_GRAYSCALE);
$im->writeImage('setImageType.jpg'); 
$im->destroy();
 
?>


Alternativly you could use this instead where 2 = grayscale:
$im->setImageType ( 2 );
Set image units
Sets the image units of resolution.
Set image units example

bool setImageUnits ( int $units )

<?php 
$im 
= new Imagick ($input);
$im->setImageUnits(2); 
$im->writeImage('setImageUnits.jpg'); 
$im->destroy();
 
?>


0 = undefined, 1 = pixelsperInch, 2 = PixelsPerCentimeter
Set image virtual pixel method
Sets the image virtual pixel method.
Set image virtual pixel method example

bool setImageVirtualPixelMethod ( int $method )

<?php 
$im 
= new imagick$input ); 
$corners = array( 0,00,0200,0200,30200,150200,1200,1500,150 );
$im->setImageVirtualPixelMethodImagick::VIRTUALPIXELMETHOD_TRANSPARENT );
$im->setImageMatteTRUE );
$im->distortImageImagick::DISTORTION_PERSPECTIVE$cornersTRUE ); 
$im->writeImage('setImageVirtualPixelMethod.png'); 
$im->destroy();
 
?>
Set image white point
Sets the image chromaticity white point.
None

Set interlace scheme
Sets the image compression.
None

Set iterator index
Set the iterator to the position in the image list specified with the index parameter.
None