Re: Converting colored areas to b/w hatchings with outline
Anthony Thyssen <[email protected]> Tue, 19 Apr 2011 12:26:39 +1000
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <20110419122639.533d82df@wraith> |
On Mon, 18 Apr 2011 14:15:45 +0200 [email protected] wrote: | | I have a set of images using up to four different colors | contrastively in addition to a white/transparent background | and some black areas/text, and need to convert these to b/w | versions with each color replaced by a hatch/dot pattern, | and preferably with each hatched area outlined with a thin | black border. I know how to replace a color by another color | from the command line but not how to replace a color with a | pattern. However I'm totally at a loss on how to achieve a | black outline around a colored area. Additionally I'd like | to do this in a perl script. | Sorry for a black outline, run the image thru edge. convert areas.gif -edge 1 -threshold 20% -negate cracks.gif Anthony Thyssen ( System Programmer ) <[email protected]> -------------------------------------------------------------------------- " I think we should put some mountains here. Otherwise, what are the characters going to fall off of? " -- Laurie Anderson -------------------------------------------------------------------------- Anthony's Castle http://www.ict.griffith.edu.au/anthony/