]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: support decoding CMYK and YCbCrK images.
authorNigel Tao <nigeltao@golang.org>
Fri, 13 Feb 2015 07:09:21 +0000 (18:09 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 16 Feb 2015 00:25:47 +0000 (00:25 +0000)
commitf10e03770c9702b3ee3bcc2ccdb78691f389c1a3
treea414e1a1d8fed724551acf8767c3f235a9e83d74
parentb5c3a9e572a1257c0db47d74b45f8e03f2f91f27
image/jpeg: support decoding CMYK and YCbCrK images.

The new testdata was created by:

convert video-001.png -colorspace cmyk video-001.cmyk.jpeg

video-001.cmyk.jpeg was then converted back to video-001.cmyk.png via
the GIMP. ImageMagick (convert) wasn't used for this second conversion
because IM's default color profiles complicates things.

Fixes #4500.

Change-Id: Ibf533f6a6c7e76883acc493ce3a4289d7875df3f
Reviewed-on: https://go-review.googlesource.com/4801
Reviewed-by: Rob Pike <r@golang.org>
src/image/decode_test.go
src/image/jpeg/reader.go
src/image/jpeg/scan.go
src/image/testdata/video-001.cmyk.jpeg [new file with mode: 0644]
src/image/testdata/video-001.cmyk.png [new file with mode: 0644]