note 89409 added to function.imagick-painttransparentimage

From: Date: Fri, 06 Mar 2009 16:12:00 +0000
Subject: note 89409 added to function.imagick-painttransparentimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-151559@lists.php.net to get a copy of this message
Actually it does seem to work just not the way expected perhaps. Looking at the fuzz option on ImageMagick's site (http://www.imagemagick.org/script/command-line-options.php#fuzz), "The distance can be in absolute intensity units or, by appending % as a percentage of the maximum possible intensity (255, 65535, or 4294967295)." As it requires a float, the percentage value won't work so it actually one of the max intensity values. In my case, the images I was working with seemed to have max intensity values of 65535. So a fuzz of 6500, for roughly 10%, seemed to do the trick. The part that might be problematic though is how do you determine the max intensity of a color/image? Using a static 6500 would be fine until I would have to convert an image with a max intensity other than 65535. If it's 255 it would wipe the entire image. Or fall far short on the fuzz with the larger value. ---- Server IP: 209.41.74.194 Probable Submitter: 24.149.10.47 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-painttransparentimage.php Edit -- https://master.php.net/note/edit/89409 Del: integrated -- https://master.php.net/note/delete/89409/integrated Del: useless -- https://master.php.net/note/delete/89409/useless Del: bad code -- https://master.php.net/note/delete/89409/bad+code Del: spam -- https://master.php.net/note/delete/89409/spam Del: non-english -- https://master.php.net/note/delete/89409/non-english Del: in docs -- https://master.php.net/note/delete/89409/in+docs Del: other reasons-- https://master.php.net/note/delete/89409 Reject -- https://master.php.net/note/reject/89409 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151559) next »