note 88928 added to function.imagick-painttransparentimage
| From: | paziek at gmail dot com | Date: | Fri, 13 Feb 2009 14:53:03 +0000 |
| Subject: | note 88928 added to function.imagick-painttransparentimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150628@lists.php.net to get a copy of this message | ||
Fuzz attribute doesn't work here.
#!/usr/bin/php
<?php
if(!isset($argv[1])) die("input file\n");
$im = new Imagick( $argv[1] );
$im->paintTransparentImage('rgb(246,241,230)', 0.0, 10);
file_put_contents('transparent_'.$argv[1], $im);
?>
Will "remove" only colors that match exactly rgb(246,241,230)
----
Server IP: 82.177.164.100
Probable Submitter: 62.69.210.177
----
Manual Page -- http://www.php.net/manual/en/function.imagick-painttransparentimage.php
Edit -- https://master.php.net/note/edit/88928
Del: integrated -- https://master.php.net/note/delete/88928/integrated
Del: useless -- https://master.php.net/note/delete/88928/useless
Del: bad code -- https://master.php.net/note/delete/88928/bad+code
Del: spam -- https://master.php.net/note/delete/88928/spam
Del: non-english -- https://master.php.net/note/delete/88928/non-english
Del: in docs -- https://master.php.net/note/delete/88928/in+docs
Del: other reasons-- https://master.php.net/note/delete/88928
Reject -- https://master.php.net/note/reject/88928
Search -- https://master.php.net/manage/user-notes.php