kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.25k stars 487 forks source link

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

Open aslakr opened 4 years ago

aslakr commented 4 years ago

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

?

kornelski commented 4 years ago

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.