kornelski / pngquant

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

Using more than 4 bits per channel with posterization #401

Closed rmn20 closed 1 year ago

rmn20 commented 1 year ago

Not sure why it is limited to 4 bits. Maybe limit could be changed? RGB555 and 565 are also very common.

kornelski commented 1 year ago

The value is number of bits to remove, not bits to keep. RGB555 removes 3 bits, not 4 or 5.

rmn20 commented 1 year ago

Maybe this could be specified in option description? What about RGB565?

kornelski commented 1 year ago

Only one value for all channels is supported. For 565 use posterization=2.