[PR #5625] [MERGED] AVIF image support #6532

Closed
opened 2026-02-05 10:34:51 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/5625
Author: @ssddanbrown
Created: 5/23/2025
Status: Merged
Merged: 5/23/2025
Merged by: @ssddanbrown

Base: developmentHead: avif_images


📝 Commits (2)

  • 3a9d18a Images: Added base avif support
  • 131ac29 Images: Added testing to cover animated avif handling

📊 Changes

5 files changed (+59 additions, -10 deletions)

View changed files

📝 app/Http/Controller.php (+1 -1)
📝 app/Uploads/ImageResizer.php (+43 -7)
📝 app/Uploads/ImageService.php (+1 -1)
📝 tests/Uploads/ImageTest.php (+14 -1)
tests/test-data/animated.avif (+0 -0)

📄 Description

For #5474

Includes specific support for animation support.
Check here is a little flaky, as specific specs for the format were not easy to find/read, but this seems to work.
Have tested against a range of formats (plain, lossless, animated, animated at 256 frames).

Is not supported in dompdf, but has been requested and marked for potential future inclusion:
https://github.com/dompdf/dompdf/issues/3600


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/5625 **Author:** [@ssddanbrown](https://github.com/ssddanbrown) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@ssddanbrown](https://github.com/ssddanbrown) **Base:** `development` ← **Head:** `avif_images` --- ### 📝 Commits (2) - [`3a9d18a`](https://github.com/BookStackApp/BookStack/commit/3a9d18a6cddea100d923370dd1ad1c9b1c9aeecd) Images: Added base avif support - [`131ac29`](https://github.com/BookStackApp/BookStack/commit/131ac29df456263fa471fed5875228e0402db9d9) Images: Added testing to cover animated avif handling ### 📊 Changes **5 files changed** (+59 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controller.php` (+1 -1) 📝 `app/Uploads/ImageResizer.php` (+43 -7) 📝 `app/Uploads/ImageService.php` (+1 -1) 📝 `tests/Uploads/ImageTest.php` (+14 -1) ➕ `tests/test-data/animated.avif` (+0 -0) </details> ### 📄 Description For #5474 Includes specific support for animation support. Check here is a little flaky, as specific specs for the format were not easy to find/read, but this seems to work. Have tested against a range of formats (plain, lossless, animated, animated at 256 frames). Is not supported in dompdf, but has been requested and marked for potential future inclusion: https://github.com/dompdf/dompdf/issues/3600 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:34:51 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#6532