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?".
colnector

Background floodfill with Imagick

Postby colnector » 2008-09-19T10:47:00-07:00

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: 8736
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Contact:

Re: Background floodfill with Imagick

Postby anthony » 2008-09-21T23:19:53-07:00

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
http://www.imagemagick.org/Usage/

colnector

Re: Background floodfill with Imagick

Postby colnector » 2008-09-23T16:49:47-07:00

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: 15296
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA
Contact:

Re: Background floodfill with Imagick

Postby fmw42 » 2008-09-23T17:45:58-07:00

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

Postby colnector » 2008-09-23T17:51:36-07:00



Return to “Users”

Who is online

Users browsing this forum: Bing [Bot], TurnitinBot [Bot] and 4 guests