1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 11:30:16 +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;
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;
}
}