1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Images: Added base avif support

Includes handling for animated avif images like apng.
This commit is contained in:
Dan Brown
2025-05-23 16:12:03 +01:00
parent d29b14ebfd
commit 3a9d18a6cd
3 changed files with 46 additions and 10 deletions

View File

@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
class ImageService
{
protected static array $supportedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp'];
protected static array $supportedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'avif'];
public function __construct(
protected ImageStorage $storage,