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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user