possible bug IM 7 Q32

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug IM 7 Q32

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug IM 7 Q32

Post 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
Post Reply