From 8d871d53e107fd00ab38e8c26241b06c7419d706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Fri, 13 Dec 2024 16:59:14 +0200 Subject: [PATCH] fix: attempt fix for animation decoding (#929) --- Dockerfile | 1 + composer.json | 1 + composer.lock | 5 +++-- config/image.php | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dcb6a009..953c4118 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,7 @@ RUN apk update && \ excimer \ exif \ gd \ + imagick \ intl \ opcache \ pdo_pgsql \ diff --git a/composer.json b/composer.json index ea524523..a2763894 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "license": "MPL-2.0", "require": { "php": "^8.2", + "ext-imagick": "*", "andreiio/blade-remix-icon": "^3.2", "archtechx/laravel-seo": "^0.10", "blade-ui-kit/blade-icons": "^1.7", diff --git a/composer.lock b/composer.lock index 1b50371c..8703aa63 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ec4d0334eb9d2f134c191b4594f58fd2", + "content-hash": "c75088e92359520e17f32dff40367d4a", "packages": [ { "name": "andreiio/blade-remix-icon", @@ -13809,7 +13809,8 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^8.2" + "php": "^8.2", + "ext-imagick": "*" }, "platform-dev": {}, "plugin-api-version": "2.6.0" diff --git a/config/image.php b/config/image.php index a5134e17..762a263e 100644 --- a/config/image.php +++ b/config/image.php @@ -18,7 +18,7 @@ | */ - 'driver' => Intervention\Image\Drivers\Gd\Driver::class, + 'driver' => Intervention\Image\Drivers\Imagick\Driver::class, /* |-------------------------------------------------------------------------- @@ -38,7 +38,7 @@ 'options' => [ 'autoOrientation' => true, - 'decodeAnimation' => false, + 'decodeAnimation' => true, 'blendingColor' => 'ffffff', ], ];