mirror of
https://github.com/Intervention/image.git
synced 2025-07-31 11:00:12 +02:00
Remove exception on GD driver's ProfileRemovalModifier
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user