How can I create silhouette from an image in linux using the terminal?
By creating silhouette I mean - how do I turn the RGB components values of an RGBA image to #000000, while preserving the alpha component value?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You could use
convert <input_image> -fill '#000' +opaque '#000' <output_image>
What it does it changes all the colors not matching