Skip to content

AVIF Images Embedding With Incorrect Rotation #264

@Enderm-n

Description

@Enderm-n

When uploading AVIF images with rotation metadata to Discord, the embedded image has the wrong rotation. However, JPG images with rotation metadata embed correctly. AVIF images with rotation metadata render correctly when opened in browser.

Rotation metadata can be added to images automatically by avifenc if encoding from a source with rotation metadata present, or by using the --irot option in avifenc.

This DSCF1860scaled50.zip zip file contains an AVIF image which renders with the correct rotation in Firefox and Microsoft Edge. The issue can be reproduced by sending this image, or any other AVIF image with rotation metadata, on Discord. The image should appear with the correct rotation, however the embed appears to ignore the rotation metadata.

Below is an example of how the image renders on discord:
Image

Additionally, here is an example of how the image should appear (converted to jpg to embed)

Image

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