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

Background floodfill with Imagick

Postby colnector » 2008-09-19T10:47:00+00: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 :)
colnector
 

Re: Background floodfill with Imagick

Postby anthony » 2008-09-21T23:19:53+00: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/
User avatar
anthony
 
Posts: 8729
Joined: 2004-05-31T19:27:03+00:00
Location: Brisbane, Australia

Re: Background floodfill with Imagick

Postby colnector » 2008-09-23T16:49:47+00: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
colnector
 

Re: Background floodfill with Imagick

Postby fmw42 » 2008-09-23T17:45:58+00: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.
User avatar
fmw42
 
Posts: 14806
Joined: 2007-07-02T17:14:51+00:00
Location: Sunnyvale, California, USA

Re: Background floodfill with Imagick

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

colnector
 


Return to Users

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 37 guests