note 115235 added to imagick.setimagebackgroundcolor
| From: | MatthiasZartmann | Date: | Tue, 17 Jun 2014 20:33:34 +0000 |
| Subject: | note 115235 added to imagick.setimagebackgroundcolor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199706@lists.php.net to get a copy of this message | ||
Small example to optimize a gray scanned image:
<?php
$im = new Imagick();
$im->readImage("~/scaninput_300DPI.tiff");
//deskew the image
$im->deskewImage(40);
//Crop to A4 and scanner pageoffset 50
$im->cropImage(2480, 3416, 50, 0);
//Need a Monochrome Image
$im->setImageColorspace(2);
$im->thresholdImage(11000);
//Compressen tiff CCITT Group 4
$im->setImageCompression(Imagick::COMPRESSION_GROUP4);
$im->writeimage("~/monochrome_300DPI.tiff");
//Cleanup
$im->clear();
$im->destroy();
?>
----
Server IP: 72.52.91.14
Probable Submitter: 80.139.124.50
----
Manual Page -- http://php.net/manual/en/imagick.setimagebackgroundcolor.php
Edit -- https://master.php.net/note/edit/115235
Del: integrated -- https://master.php.net/note/delete/115235/integrated
Del: useless -- https://master.php.net/note/delete/115235/useless
Del: bad code -- https://master.php.net/note/delete/115235/bad+code
Del: spam -- https://master.php.net/note/delete/115235/spam
Del: non-english -- https://master.php.net/note/delete/115235/non-english
Del: in docs -- https://master.php.net/note/delete/115235/in+docs
Del: other reasons-- https://master.php.net/note/delete/115235
Reject -- https://master.php.net/note/reject/115235
Search -- https://master.php.net/manage/user-notes.php