From f17fe7bb54ec18d75588f527052069a6e9b5d720 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 9 Dec 2023 11:10:43 +0100 Subject: [PATCH] Remove exception on GD driver's ProfileRemovalModifier --- src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php b/src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php index 37f6818d..1e89ebed 100644 --- a/src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php +++ b/src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php @@ -3,15 +3,14 @@ namespace Intervention\Image\Drivers\Gd\Modifiers; use Intervention\Image\Drivers\DriverSpecializedModifier; -use Intervention\Image\Exceptions\NotSupportedException; use Intervention\Image\Interfaces\ImageInterface; class ProfileRemovalModifier extends DriverSpecializedModifier { public function apply(ImageInterface $image): ImageInterface { - throw new NotSupportedException( - 'Color profiles are not supported by GD driver.' - ); + // Color profiles are not supported by GD, so the decoded + // image is already free of profiles anyway. + return $image; } }