Skip to content

Support for displaying AVIF image files #2466

Description

@Tschrock

Describe the problem to be solved

AVIF files currently do not display preview images, and are stretched when opened (they embed as an object instead of an img):

Image Image

Describe the solution you would like

AVIF has baseline browser support since 2024 - it looks like the only thing stopping them from displaying properly is the image size calculation. The image-size library should be updated - it's currently on an 8 year old version (0.6.3) that is missing AVIF support. The @types/image-size package can also be removed with this since the updated library has built-in types.

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