note 109244 modified in imagick.thresholdimage by danbrown
| From: | danbrown@php.net | Date: | Mon, 16 Jul 2012 16:01:26 +0000 |
| Subject: | note 109244 modified in imagick.thresholdimage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189242@lists.php.net to get a copy of this message | ||
getQuantumRange() can be handy
here: <?php $i = new
Imagick($imageFile); $max = $i->getQuantumRange(); $max =
$max["quantumRangeLong"]; $i->thresholdImage(0.77 *
$max); ?>
--was--
getQuantumRange() can be handy here:
$i = new Imagick($imageFile);
$max = $i->getQuantumRange();
$max = $max["quantumRangeLong"];
$i->thresholdImage(0.77 * $max);
http://php.net/manual/en/imagick.thresholdimage.php