AVIF Image Format Support #5174

Closed
opened 2026-02-05 09:45:57 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Nawor3565 on GitHub (Feb 6, 2025).

Describe the feature you'd like

Since the AVIF format now seems to be well supported among browsers, it would be useful to add support for the format to Bookstack. In fact, it seems like the format may already be functional as AVIF images are displayed in the "image format not supported" error pop-up when trying to upload one, so adding support may be trivial.

Image

Describe the benefits this would bring to existing BookStack users

Support for a modern, high-qualify image compression format that is becoming more widely used

Can the goal of this request already be achieved via other means?

No, because this is a very specific request.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

1 to 5 years

Additional context

It was recommended that I open a new request for this in #2505

Originally created by @Nawor3565 on GitHub (Feb 6, 2025). ### Describe the feature you'd like Since the AVIF format now seems to be well supported among browsers, it would be useful to add support for the format to Bookstack. In fact, it seems like the format may already be functional as AVIF images are displayed in the "image format not supported" error pop-up when trying to upload one, so adding support may be trivial. ![Image](https://github.com/user-attachments/assets/d57a6606-0fb3-47ca-9b6f-3a76bc0d2c3c) ### Describe the benefits this would bring to existing BookStack users Support for a modern, high-qualify image compression format that is becoming more widely used ### Can the goal of this request already be achieved via other means? No, because this is a very specific request. ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### How long have you been using BookStack? 1 to 5 years ### Additional context It was recommended that I open a new request for this in #2505
OVERLORD added the 🔨 Feature Request label 2026-02-05 09:45:57 +03:00
Author
Owner

@muelsyse-az commented on GitHub (May 13, 2025):

I've looked into #2505 and I think that AVIF support should be OK to pursue now.

It's now supported on all major browsers (Edge being the last one to adopt it in Jan 2024) and it seems that the image-resizing library also fully supports AVIF.

@muelsyse-az commented on GitHub (May 13, 2025): I've looked into #2505 and I think that AVIF support should be OK to pursue now. It's now supported on [all major browsers](https://caniuse.com/avif) (Edge being the last one to adopt it in Jan 2024) and it seems that the [image-resizing library](https://image.intervention.io/v3/getting-started/formats) also fully supports AVIF.
Author
Owner

@ssddanbrown commented on GitHub (May 13, 2025):

Yeah, I'll go ahead and assign this for the next feature release.

Looks like php-gd supported this as of 8.1, which is now below our minimums, so that's fine.

Will need to check animation support across the support targets, since that can be problematic or need specific handling as experienced via other formats.

@ssddanbrown commented on GitHub (May 13, 2025): Yeah, I'll go ahead and assign this for the next feature release. Looks like php-gd [supported this](https://www.php.net/manual/en/function.imagecreatefromavif.php) as of 8.1, which is now below our minimums, so that's fine. Will need to check animation support across the support targets, since that can be problematic or need specific handling as experienced via other formats.
Author
Owner

@ssddanbrown commented on GitHub (May 23, 2025):

This has now been added via #5625, to be part of the next release.
Animation support is there, in the same way we handle animated png (gallery will show a still resized thumbnail, display image bypasses any of our scaling to retain animation).
There is a limitation that the format is not yet supported by our default PDF renderer, but that looks to be due somewhat soon (although is not assured).

@ssddanbrown commented on GitHub (May 23, 2025): This has now been added via #5625, to be part of the next release. Animation support is there, in the same way we handle animated png (gallery will show a still resized thumbnail, display image bypasses any of our scaling to retain animation). There is a limitation that the format is not yet supported by our default PDF renderer, but that looks to be due somewhat soon (although is not assured).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5174