[OpenJDK 2D-Dev] 6523398: sun.java2d.cmm.lcms.LCMS.setTagData

Keith Seitz keiths at redhat.com
Mon Apr 7 22:26:21 UTC 2008

Dmitri Trembovetski wrote:

>   According to this bug:
>     6523402: OSS CMM: Some quality problems with GRAY, PYCC and CIEXYZ 
> color spaces with lcms library
>   it should have worked with GRAY profile (albeit with some
>   quality issues).

Yes, the supplied GRAY.pf *does* work, and no one would probably ever 
notice that the file is not properly formatted until someone (like me!) 
tried to implement LCMS.setTagData. As it is, I have edited the binary 
file to add two more pad bytes at the end of the file and update the 
header's size. That appears to fix everything (including the problems I 
was having with my patch) and bring the file back into compliance with 
the ICC specification.

I would encourage you to make the same alteration to your GRAY.pf, too.


More information about the 2d-dev mailing list