Skip to content

Add animated AVIF (avis) detection support#513

Merged
davidbyttow merged 1 commit intomasterfrom
worktree-fix-avis-detection
Mar 6, 2026
Merged

Add animated AVIF (avis) detection support#513
davidbyttow merged 1 commit intomasterfrom
worktree-fix-avis-detection

Conversation

@davidbyttow
Copy link
Owner

@davidbyttow davidbyttow commented Mar 5, 2026

Summary

Test plan

  • Test_DetermineImageType__AVIF_Animated passes with synthetic avis ftyp buffer
  • Existing Test_DetermineImageType__AVIF still passes for static AVIF

🤖 Generated with Claude Code

Note

Detect animated AVIF by updating vips.isAVIF to accept brand avis with ftyp at bytes 4–8 in foreign.go

Update brand matching to treat avis as AVIF alongside avif and add a test for animated AVIF detection in foreign_test.go.

📍Where to Start

Start with the isAVIF function in foreign.go.

Macroscope summarized 95b0cf3.

Fixes #509. The isAVIF function only matched the static "avif" brand in the
ftyp box. Animated AVIF files use the "avis" brand, which was unrecognized,
causing DetermineImageType to return unknown for valid animated AVIF images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coveralls
Copy link

Coverage Status

coverage: 36.374% (+0.009%) from 36.365%
when pulling 95b0cf3 on worktree-fix-avis-detection
into 12bbea8 on master.

@davidbyttow davidbyttow merged commit cf28300 into master Mar 6, 2026
3 checks passed
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.

Feature Request: Add support for Animated AVIF (avis) in isAVIF detection

2 participants