Page 1 of 1

Possible bug with threshold

Posted: 2019-02-19T12:22:05-07:00
by mpavlis
I am trying to turn all the colors on images to black. I test using two different files, I worked perfectly the other turned everything white. No errors or warnings.

commands I used:
convert test.png -threshold 99% result.png
convert test2.png -threshold 99% result2.png

Images and results here: ... G03QXAJImT

Re: Possible bug with threshold

Posted: 2019-02-19T12:53:03-07:00
by snibgo
What version of IM? On what platform?

When using "-threshold", I suggest you restrict the operation to the RGB channels.

If you want to make the entire image opaque black, I suggest you use "-fill Black -colorize 100".