From 71540fdee8b1d3208e3af984b3de2c00e43e5c27 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 3 Aug 2024 17:50:26 +0200 Subject: [PATCH] Implement EncodedImageObjectDecoder::class --- src/Decoders/EncodedImageObjectDecoder.php | 11 ++++++++ .../Gd/Decoders/EncodedImageObjectDecoder.php | 27 +++++++++++++++++++ .../Decoders/EncodedImageObjectDecoder.php | 27 +++++++++++++++++++ src/InputHandler.php | 2 ++ 4 files changed, 67 insertions(+) create mode 100644 src/Decoders/EncodedImageObjectDecoder.php create mode 100644 src/Drivers/Gd/Decoders/EncodedImageObjectDecoder.php create mode 100644 src/Drivers/Imagick/Decoders/EncodedImageObjectDecoder.php diff --git a/src/Decoders/EncodedImageObjectDecoder.php b/src/Decoders/EncodedImageObjectDecoder.php new file mode 100644 index 00000000..daddff2d --- /dev/null +++ b/src/Decoders/EncodedImageObjectDecoder.php @@ -0,0 +1,11 @@ +toString()); + } +} diff --git a/src/Drivers/Imagick/Decoders/EncodedImageObjectDecoder.php b/src/Drivers/Imagick/Decoders/EncodedImageObjectDecoder.php new file mode 100644 index 00000000..2348a6b7 --- /dev/null +++ b/src/Drivers/Imagick/Decoders/EncodedImageObjectDecoder.php @@ -0,0 +1,27 @@ +toString()); + } +} diff --git a/src/InputHandler.php b/src/InputHandler.php index 2772ec45..a0720d13 100644 --- a/src/InputHandler.php +++ b/src/InputHandler.php @@ -15,6 +15,7 @@ use Intervention\Image\Decoders\BinaryImageDecoder; use Intervention\Image\Decoders\ColorObjectDecoder; use Intervention\Image\Decoders\DataUriImageDecoder; +use Intervention\Image\Decoders\EncodedImageObjectDecoder; use Intervention\Image\Decoders\FilePathImageDecoder; use Intervention\Image\Decoders\FilePointerImageDecoder; use Intervention\Image\Decoders\ImageObjectDecoder; @@ -53,6 +54,7 @@ class InputHandler implements InputHandlerInterface BinaryImageDecoder::class, DataUriImageDecoder::class, Base64ImageDecoder::class, + EncodedImageObjectDecoder::class, ]; /**