Skip to content

Commit

Permalink
Remove exception on GD driver's ProfileRemovalModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 9, 2023
1 parent ee98a0f commit f17fe7b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Drivers/Gd/Modifiers/ProfileRemovalModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit f17fe7b

Please sign in to comment.