Aaron,

I might be able to help a little.

You need to write the iCCP chunk. Also make sure you have no conflicting 
entries in other chunks (sRGB, gAMA, cHRM chunk). PNG is a bit delicate in 
terms of possible ambiguous color space info in header.
You also need to know, that some PNG readers don’t handle the color space 
chucks gracefully (specifically gAMA, cHRM – even Photoshop is clunky in that 
aspect, at least if no iCCP chunk is present).

Do you use libpng ? If so, you need to do call
png_set_iCCP()
during your file creation to write the ICC profile.

Marco

Von: Noel Carboni [mailto:ncarb...@prodigitalsoftware.com]
Gesendet: Montag, 20. Februar 2017 13:03
An: 'Aaron Boxer'
Cc: lcms-user@lists.sourceforge.net
Betreff: Re: [Lcms-user] Apply profile with PCS = cmsSigXYZData, Color Space = 
cmsSigGrayData

>Noel, do you know where I could find sample code to read/write ICC profiles 
>for PNG format?
Sorry, I really don't, offhand.  I'd probably rely heavy on Google for that.

-Noel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to