bumptech / bumptech/glide

Bitmap hasAlpha() Always Returns True After AVIF Decoding

Open
#5,599 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

The bitmap decoded by the AvifDecoder.decode(sourceCopy, sourceCopy.remaining(), bitmap) method always has its hasAlpha() property set to true. To resolve this issue, you need to manually set bitmap.setHasAlpha(info.alphaPresent).

testUrl : https://jakearchibald.com/c/f1-good-BmiDwNjp.avif

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.