Skip to content

fix(image): preserve animated AVIFs - #4635

Open
Mohamedajab wants to merge 1 commit into
cloudflare:mainfrom
Mohamedajab:fix/animated-avif
Open

Mohamedajab wants to merge 1 commit into
cloudflare:mainfrom
Mohamedajab:fix/animated-avif

Conversation

@Mohamedajab

Copy link
Copy Markdown

/_next/image now checks for the avis brand before resizing an AVIF. It returns animated AVIFs as-is and still resizes single-frame AVIFs.

Fixes #4603. The detection follows the avis check added in vercel/next.js#101173.

91 focused tests, pnpm run check, and both production Worker AVIF tests passed. In dev, both image outputs matched expectations, but the animated test failed its cache header assertion. Dev returned no-store, must-revalidate.

@clanky-the-clanker

Copy link
Copy Markdown

This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting clanky review (or clanker review or @clanky-the-clanker review), optionally followed by instructions (e.g. clanky review focus on the retry logic).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

next/image: preserve animated AVIF sources

1 participant