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:

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

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
--irotoption 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:

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