It appears there is an issue with avif files that contain animations, so avif sequence (avis). It's only a detection issue, the dimensions seem to be retrieved correctly if this is bypassed. I'll follow up with a PR to fix it.