Open Winterhuman opened 1 year ago
It reads palette from the given file.
It's undocumented, because of tradition. It was undocumented in 1999 version of pngquant too! ;)
More seriously, I never implemented it properly by reading the palette out of the file, it applies pngquant to it, so it only uses palette for pixels in the file, not all (including unused) palette entries.
Yeah, I noticed using an indexed PNG for the palette image doesn't work (I didn't open an issue for that in case --map
was being deprecated, hence this issue), it's cool to hear how long pngquant
has been around!
Are there any plans for enhancing --map
in the future? Maybe a way to export a palette from an existing image?
I noticed in some issues and pull requests that there's a
--map
option available which is "undocumented", however, I couldn't find an explanation for why this is. Is there a chance it could be included in the--help
andman
pages?