Possible bug with threshold

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mpavlis
Posts: 1
Joined: 2019-02-19T11:46:50-07:00
Authentication code: 1152

Possible bug with threshold

Post 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:
https://drive.google.com/drive/folders/ ... G03QXAJImT
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Possible bug with threshold

Post 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".
snibgo's IM pages: im.snibgo.com
Post Reply