Page 1 of 1

Background floodfill with Imagick

Posted: 2008-09-19T10:47:00-07:00
by colnector
My question is regarding creating a ‘fake’ transparent background with floodfill. I’ve managed to find an ImageMagick example but couldn’t figure out yet how to use Imagick to do the same.

Here:
http://www.imagemagick.org/Usage/channels/


convert cyclops.png -bordercolor white -border 1×1 -matte \
-fill none -fuzz 20% -draw ‘matte 0,0 floodfill’ \
-shave 1×1 cyclops_flood_3.png


Thanks :)

Re: Background floodfill with Imagick

Posted: 2008-09-21T23:19:53-07:00
by anthony
Are you wanting to convert a existing background to transparent, or make the background some color to match say a web page?

The former is where you go the example.
The later is in Common formats, GIF.

Re: Background floodfill with Imagick

Posted: 2008-09-23T16:49:47-07:00
by colnector
Please mind that my question is about Imagick, the PHP extension encapsulating ImageMagick.
As I'm creating JPG thumbnails, transparency is not an option and so I'd need a background fill.
Thanks

Re: Background floodfill with Imagick

Posted: 2008-09-23T17:45:58-07:00
by fmw42
You should really be posting this to the IMagick forum at viewforum.php?f=18 as most users of this forum are not using IMagick.

Re: Background floodfill with Imagick

Posted: 2008-09-23T17:51:36-07:00
by colnector