1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-13 17:34:04 +02:00

Remove exception on GD driver's ProfileRemovalModifier

This commit is contained in:
Oliver Vogel
2023-12-09 11:10:43 +01:00
parent ee98a0f89d
commit f17fe7bb54

View File

@@ -3,15 +3,14 @@
namespace Intervention\Image\Drivers\Gd\Modifiers; namespace Intervention\Image\Drivers\Gd\Modifiers;
use Intervention\Image\Drivers\DriverSpecializedModifier; use Intervention\Image\Drivers\DriverSpecializedModifier;
use Intervention\Image\Exceptions\NotSupportedException;
use Intervention\Image\Interfaces\ImageInterface; use Intervention\Image\Interfaces\ImageInterface;
class ProfileRemovalModifier extends DriverSpecializedModifier class ProfileRemovalModifier extends DriverSpecializedModifier
{ {
public function apply(ImageInterface $image): ImageInterface public function apply(ImageInterface $image): ImageInterface
{ {
throw new NotSupportedException( // Color profiles are not supported by GD, so the decoded
'Color profiles are not supported by GD driver.' // image is already free of profiles anyway.
); return $image;
} }
} }