Skip to content
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