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

CIP format: White pixels turn black

Postby Jason S » 2013-07-02T16:17:17-07:00

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
<Data>0000</Data>
$ grep Data fe.cip
<Data>ffff</Data>
$ grep Data ff.cip
<Data>0000</Data>

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
magick
Site Admin
Posts: 9707
Joined: 2003-05-31T11:32:55-07:00
Contact:

Re: CIP format: White pixels turn black

Postby magick » 2013-07-02T17:10:24-07:00

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


Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 2 guests