11ty / 11ty/image

Issue providing Avif as the input

Open
#288 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

education on hold
Dominant language
JavaScript
Stars
467
Forks
65
PR merge metrics
No merged PRs in 30d

Description

I can get this plugin working with jpg, svg etc, but if I provide an avif file as my input I always seem to get the following error message:-

heif: Invalid input: Unspecified: Bitstream not supported by this decoder

I don't know if this is a bug or if I am doing something wrong. All my images are already avifs, I am simply wanting the plugin to provide me with smaller sizes.

I am using Eleventy 3, Node 23, Eleventy-img 6.

I have tried going back previous versions to no avail. Even trying to force an older version of Sharp.

The docs appear to suggest that Avif is an acceptable input so I am not sure what is going wrong here..

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the AVIF input failure with Eleventy 3, Node 23, and Eleventy-img 6, then compare behavior across the attempted versions and Sharp configurations. Check the AVIF input path and the documentation that says AVIF is supported. Done means identifying whether this is a compatibility bug or unsupported input and documenting or correcting the behavior accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.