CIP format: White pixels turn black

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
Jason S
Posts: 103
Joined: 2010-12-14T19:42:12-07:00
Authentication code: 8675308

CIP format: White pixels turn black

Post by Jason S »

Using IM 6.8.6-3 to write CIP (Cisco IP Phone Image) format:

Code: Select all

$ convert -size 4x2 'xc:#000000' 00.cip
$ convert -size 4x2 'xc:#fefefe' fe.cip
$ convert -size 4x2 'xc:#ffffff' ff.cip

$ grep Data 00.cip
$ grep Data fe.cip
$ grep Data ff.cip
Almost-white pixels are correctly rounded up, but pure white pixels are encoded as if they were black. I think there's a rounding bug.
User avatar
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CIP format: White pixels turn black

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.6-4 Beta available by sometime tomorrow. Thanks.
Post Reply