Skip to content

Animated avif are not loaded #1894

@momumi

Description

@momumi

Steps to reproduce

Create a local chapter with an animated avif file, and suwayomi won't serve it.

It looks like animated avif files use the magic bytes typavis ftypavis, but suwayomi only checks for typavif ftypavif.

if (bytes.copyOfRange(4, 12).compareWith("ftypavif".toByteArray())) {
return AVIF
}

Expected behavior

Animated avif files should load.

Actual behavior

Animated avif files don't load.

Suwayomi-Server version

v2.1.2056

Used database

H2

Server operating system

Arch Linux

Server Desktop Environment

No response

Server JVM version

openjdk 25.0.2 2026-01-20

Used client name

Suwayomi-WebUI

Client version

r2937

Used web browser

Mozilla Firefox 147.0.3

Client operating system

Arch Linux

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title (ideally less than ~100 characters).
  • I have tried the troubleshooting guide described in README.md
  • I have updated to the latest version.
  • I have filled out all of the requested information in this form, including specific version numbers.
  • I understand that Suwayomi does not have or fix any extensions, and I will not receive help for any issues related to sources or extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions