note 115860 added to imagick.setimagetype

From: Date: Sat, 04 Oct 2014 18:29:57 +0000
Subject: note 115860 added to imagick.setimagetype
Groups: php.notes 
Request: Send a blank email to php-notes+get-200587@lists.php.net to get a copy of this message
The cleaner way to set the type to grayscale is to use the Imagick class constant. $oBw = new \Imagick($sSourceImage); $oBw->setImageType(\Imagick::IMGTYPE_GRAYSCALE); I've found this to be a rather harsh 'convert to grayscale' approach. Fred's color2gray script works much better, but it's written in Bash. Time to get it ported over lol http://www.fmwconcepts.com/imagemagick/color2gray/index.php ---- Server IP: 72.52.91.14 Probable Submitter: 63.227.115.57 ---- Manual Page -- http://php.net/manual/en/imagick.setimagetype.php Edit -- https://master.php.net/note/edit/115860 Del: integrated -- https://master.php.net/note/delete/115860/integrated Del: useless -- https://master.php.net/note/delete/115860/useless Del: bad code -- https://master.php.net/note/delete/115860/bad+code Del: spam -- https://master.php.net/note/delete/115860/spam Del: non-english -- https://master.php.net/note/delete/115860/non-english Del: in docs -- https://master.php.net/note/delete/115860/in+docs Del: other reasons-- https://master.php.net/note/delete/115860 Reject -- https://master.php.net/note/reject/115860 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200587) next »