Re: What is the GraphicsMagick equivalent of ImageMagick's +opaque? (graphicsmagick: message 1 of 10)
Bob Friesenhahn <[email protected]> Sat, 19 Jan 2019 15:54:37 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 19 Jan 2019, [email protected] wrote: > Bob- > > Thank you for the prompt response. :) > > Sadly, as -channel, -operator and -recolor all work on channels, they did not work in my case. > > I want only a specific colour preserved, the rest is deleted. Sortof like an image mask based on a selection by color. This is what +opaque does. So +opaque is similar to -opaque, but the sense of what gets modified is inverted. There is not much code in the OpaqueImage() implementation and the only difference is to invert the sense of a test. I don't have time to work on this at the moment though. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt