enhancement request +transparent

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

enhancement request +transparent

Post by fmw42 »

This is not urgent on my part, just a suggestion for completeness for the future.

But, it might be nice to have a +transparent somecolor option to turn all colors transparent except the one specified.

convert rmgcb.png +transparent green1 rmgcb_none_green_none.png
convert: unable to open image `green1': No such file or directory @ blob.c/OpenBlob/2439.

There is a current workaround as pointed out by Anthony at viewtopic.php?f=1&t=13602

Image
convert rmgcb.png \
-channel A -transparent green1 -negate +channel \
rmgcb_none_green_none.png
Image
Post Reply