]> Cypherpunks.ru repositories - gostls13.git/commit
image/png: pack image data for small bitdepth paletted images
authorIan Davis <nospam@iandavis.com>
Sat, 8 Sep 2018 16:00:00 +0000 (17:00 +0100)
committerNigel Tao <nigeltao@golang.org>
Tue, 25 Sep 2018 07:24:39 +0000 (07:24 +0000)
commitb84a58095f11ba3122b88847d1b0a73c57c1632c
tree66b818e3053fa5c69067934e2637a69d52475607
parentc7ac645d28b99f163c46e2b8622ca7b60dc212ce
image/png: pack image data for small bitdepth paletted images

Bit packs image data when writing images with fewer than 16
colors in its palette. Reading of bit packed image data was
already implemented.

Fixes #19879

Change-Id: I0a06f9599a163931e20d3503fc3722e5101f0070
Reviewed-on: https://go-review.googlesource.com/134235
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/image/png/writer.go
src/image/png/writer_test.go