PHP 5.6.0RC3 is available

Imagick::setImageType

(PECL imagick 2.0.0)

Imagick::setImageTypeSets the image type

Beschreibung

bool Imagick::setImageType ( int $image_type )

Sets the image type.

Parameter-Liste

image_type

R├╝ckgabewerte

Liefert TRUE bei Erfolg.

add a note add a note

User Contributed Notes 1 note

up
1
lee dot traynor at skeptic dot de
2 years ago
This function can be used to desaturate an image, i.e. to convert a coloured image into a greyscale:

<?php

$im
= new Imagick ("image.jpg");
$im->setImageType (2);
//is now in 256 shades of grey

?>
To Top