Background floodfill with Imagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
colnector

Background floodfill with Imagick

Post 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 :)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Background floodfill with Imagick

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
colnector

Re: Background floodfill with Imagick

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Background floodfill with Imagick

Post 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.
colnector

Re: Background floodfill with Imagick

Post by colnector »

Post Reply