Skip to content

Handle .avif like an image

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

The .avif file extension is currently not recognized as image format/container

Steps to reproduce

  • Upload an AVIF file

Example Project

https://gitlab.com/AB-xdev/avif-demo

What is the current bug behavior?

  • AVIF files are handled like a blob
  • Files are not displayed in markdown as a HTML page is returned for the file

What is the expected correct behavior?

  • AVIF files should be handled like images (e.g. png or gif)
  • AVIF are correctly displayed like e.g. on GitHub or inside VS Code's Markdown preview

Relevant logs and/or screenshots

Click to expand

For comparison when using e.g. VS Code AVIFs are displayed correctly inside markdown:

Output of checks

This bug happens on GitLab.com and self-hosted instances.

Edited by 🤖 GitLab Bot 🤖