note 73944 added to function.imagefilter

From: Date: Fri, 16 Mar 2007 17:26:58 +0000
Subject: note 73944 added to function.imagefilter
Groups: php.notes 
Request: Send a blank email to php-notes+get-124524@lists.php.net to get a copy of this message
If you're looking for fast sepia effect that can be used for on-the-fly thumbnails generation you can't use sophisticated functions. The faster and much better way than described by webmaster at qudi dot de in the note from 31-Jan-2006 is applying colorize filter AFTER grayscale. <?php (...) imagefilter($yourimage, IMG_FILTER_GRAYSCALE); imagefilter($yourimage, IMG_FILTER_COLORIZE, 90, 60, 40); (...) ?> I used (90,60,40) for my sepia after couple of tests, however, if you need darker or lighter just check what suits you best. ---- Server IP: 83.64.128.68 Probable Submitter: 83.30.238.150 ---- Manual Page -- http://www.php.net/manual/en/function.imagefilter.php Edit -- https://master.php.net/note/edit/73944 Del: integrated -- https://master.php.net/note/delete/73944/integrated Del: useless -- https://master.php.net/note/delete/73944/useless Del: bad code -- https://master.php.net/note/delete/73944/bad+code Del: spam -- https://master.php.net/note/delete/73944/spam Del: non-english -- https://master.php.net/note/delete/73944/non-english Del: in docs -- https://master.php.net/note/delete/73944/in+docs Del: other reasons-- https://master.php.net/note/delete/73944 Reject -- https://master.php.net/note/reject/73944 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124524) next »