Page 1 of 1

possible bug IM 7 Q32

Posted: 2018-03-31T10:58:36-07:00
by fmw42
IM 7.0.7.28 Q16 compared to Q32 (both HDRI).

This works fine in Q16:

Code: Select all

magick -size 500x500 xc:none xc:red +append +write tmpq16a.png \
-fill white +opaque none +write tmpq16b.png \
-background black -alpha background -alpha off -type bilevel \
testq16.png
But in Q32 the last line produces a totally black image:

Code: Select all

magick -size 500x500 xc:none xc:red +append +write tmpq32a.png \
-fill white +opaque none +write tmpq32b.png \
-background black -alpha background -alpha off -type bilevel \
testq32.png
Zip File of 3 image for each. The first two are fine. The last of Q32 is black.

http://www.fmwconcepts.com/misc_tests/q ... rchive.zip

P.S. The issue seems to be the -type bilevel. If I remove it, it looks fine.

Re: possible bug IM 7 Q32

Posted: 2018-04-02T11:48:53-07:00
by fmw42
Here is a simpler example:

This works in IM 7.0.7.28 Q16 HDRI:
im7 magick -size 500x500 xc:black xc:white \
+append +write tmpq16bw.png \
-type bilevel testq16bilevel.png

Image

Image


This fails when setting the type to bilevel:
im7q32 magick -size 500x500 xc:black xc:white \
+append +write tmpq32bw.png \
-type bilevel testq32bilevel.png

Image

Image