Skip to content

Commit

Permalink
tiff decode error when it has alpha channel
Browse files Browse the repository at this point in the history
  • Loading branch information
bin-x authored May 11, 2024
1 parent 55c4ab6 commit cf76292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tiff/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ func newDecoder(r io.Reader) (*decoder, error) {
}
case 4:
switch d.firstVal(tExtraSamples) {
case 0:
fallthrough
case 1:
d.mode = mRGBA
if d.bpp == 16 {
Expand Down

0 comments on commit cf76292

Please sign in to comment.