Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use VP8L+ICC in the same file without APLH chunk #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added testdata/gopher-doc.with-alpha.lossless.webp
Binary file not shown.
Binary file added testdata/gopher-doc.with-alpha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions webp/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ func decode(r io.Reader, configOnly bool) (image.Image, image.Config, error) {
return m, image.Config{}, nil

case fccVP8L:
if wantAlpha || alpha != nil {
return nil, image.Config{}, errInvalidFormat
}
if configOnly {
c, err := vp8l.DecodeConfig(chunkData)
return nil, c, err
Expand Down
1 change: 1 addition & 0 deletions webp/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func TestDecodeVP8L(t *testing.T) {
"gopher-doc.8bpp",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TNrx3YHzhJYxHFo3eSLjEFpHZ3j9NBKbGR

"tux",
"yellow_rose",
"gopher-doc.with-alpha",
}

loop:
Expand Down