note 87330 modified in function.imagick-modulateimage by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Dec 2008 01:12:09 +0000 |
| Subject: | note 87330 modified in function.imagick-modulateimage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147458@lists.php.net to get a copy of this message | ||
Here's a example of this function:
<?php
$img = new Imagick();
$img->readImage($image_file_name);
// leave hue at 100%, drop saturation by 100%, leave brightness at 100%
$img->modulateImage(100, 0, 100);
$img->writeImage($thumb_file_name);
$img->clear();
$img->destroy();
?>
--was--
Here's a example of this function:
$img = new Imagick();
$img->readImage($image_file_name);
// leave hue at 100%, drop saturation by 100%, leave brightness at 100%
$img->modulateImage(100, 0, 100);
$img->writeImage($thumb_file_name);
$img->clear();
$img->destroy();
http://php.net/manual/en/function.imagick-modulateimage.php