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; } }