Skip to content

pandoc.image.size fails on AVIF images #10979

@rnwst

Description

@rnwst

Running pandoc.image.size on an AVIF image results in the error could not determine image type.

local _, file = pandoc.mediabag.fetch('blue-tit.avif')
local img_data = pandoc.image.size(file)

Unfortunately, GitHub won't let me upload an AVIF file but you can use this one for example.

Pandoc version?
pandoc 3.7.0.2
Features: +server +lua
Scripting engine: Lua 5.4
OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions