Page 1 of 1

CIP format: White pixels turn black

Posted: 2013-07-02T16:17:17-07:00
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
<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.

Re: CIP format: White pixels turn black

Posted: 2013-07-02T17:10:24-07:00
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.