libpng
libpng copied to clipboard
Suggested Palette
I'm trying to apply custom color depths to channels, e.g. 5, 6 or 7 bit. This may lead to file size reduction may up to 50% while preserving enough quality. Currently it's implemented as additional encoding\decoding steps.
Do I understand it correctly that suggested palettes were designed for this purpose? 5, 6 or 7 bit numbers can be represented by 8 bit as required by the spec.
If yes, could you give pointers how to specify suggested palettes using python?
Thanks