Skip to content

Bitmap hasAlpha() Always Returns True After AVIF Decoding #5599

@kafchino

Description

@kafchino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions