kornelski/pngquant

"--map" using icc/gamma in map-file

aslakr opened this issue · 1 comments

If given a map file with icc/gama/chrm should should the resulting file be transformed using that instead of the default sRGB?

I.e. if given one of the following map-files with iccp/gama:

16-apple-colors-gama-iccp 256-apple-colors-gama-iccp

the result would transform into that color space?

Or maybe it would be better to specify a a color profile:

pngquant --icc /usr/local/share/color/icc/colord/AppleRGB.icc

?

If you compile with color profile support, pngquant will convert everything to sRGB.

I don't recommend using any other color space. In 8 bit depth there isn't room to do anything fancy like wide gamut color, and using different flavors of sRGB-like spaces only brings you rounding errors and software incompatibilities.