Skip to content

AVIF Image Rendering Issues on Android 12+: Black Backgrounds #5140

@vignesh-em

Description

@vignesh-em

Glide Version: 4.14.2

Integration libraries: none

Device/Android Version: Samsung Galaxy M52 / Android 13

Use case background:

Android 12 introduces support for AVIF images. So starting Android 12, Glide should be able to decode AVIFs without avif-integration library. However, when used without the avif integration library, the avif images are sometimes not rendered or rendered with a black background (the image has transparent parts).

I also tested this on a Pixel 6 Pro running Android 12. The image did not render.

I am not sure whether this is a platform issue or an issue with the way glide processes avif images but I do see the devices have a decoder that supports video/av01 format.

The sample project can be found here.

food-avif-vs-webp (2)

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