Problem:
The HuffmanOnly option, which only performs Huffman encoding, is supported by the zlib library, but not by png using zlib.
Solution
Add a HuffmanOnly const to image/png.
Golang developer can pass the HuffmanOnly option with the code below and get a PNG with only huffman encoding.
png.Encoder{
CompressionLevel: png.HuffmanOnly,
}
Problem:
The HuffmanOnly option, which only performs Huffman encoding, is supported by the zlib library, but not by png using zlib.
Solution
Add a HuffmanOnly
constto image/png.Golang developer can pass the HuffmanOnly option with the code below and get a PNG with only huffman encoding.