Page 1 of 1

monochrome: whole output image is black

Posted: 2019-12-04T00:48:09-07:00
by cwong
I use the following command to convert image to black and white:
"C:\Program Files\ImageMagick-7.0.8-Q16\magick.exe" convert input.png -monochrome output.png

Most of the output images are good.
However, I found that with the following input image, the whole output image is black.

Input image:
Image

Output image:
Image

Magick version:
7.0.8 on Windows 10

Please advise. Thanks a lot.

Best Regards,
Clive

Re: monochrome: whole output image is black

Posted: 2019-12-04T10:32:46-07:00
by fmw42

Re: monochrome: whole output image is black

Posted: 2019-12-04T17:02:51-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: monochrome: whole output image is black

Posted: 2019-12-04T19:34:24-07:00
by cwong
Thank you so much! Looking forward the beta release.

Re: monochrome: whole output image is black

Posted: 2019-12-05T23:03:51-07:00
by cwong
Thanks for the beta release and I have tried it.
(ImageMagick-7.0.9-8~beta20191205-Q16-x64-static.exe)

Unfortunately, for the above image, the problem still persists (The whole output image is still black).
Other images do not have this problem. (relate to major color is orange... ?)

Would you please help? Thanks a lot!

Best Regards,
Clive

Re: monochrome: whole output image is black

Posted: 2019-12-06T04:22:56-07:00
by magick
It takes up to 24 hours for the Windows binaries to sync to the Beta releases of ImageMagick. Try downloading again.

Re: monochrome: whole output image is black

Posted: 2019-12-09T23:33:21-07:00
by cwong
I have tried ImageMagick-7.0.9-9-Q16-x64-static.exe.

The problem is fixed. Thank you so much!

Best Regards,
Clive