diff --git a/src/Image.php b/src/Image.php index a8489556..6ba0ca2a 100644 --- a/src/Image.php +++ b/src/Image.php @@ -51,6 +51,7 @@ use Intervention\Image\Modifiers\PixelateModifier; use Intervention\Image\Modifiers\PlaceModifier; use Intervention\Image\Modifiers\ProfileModifier; +use Intervention\Image\Modifiers\ProfileRemovalModifier; use Intervention\Image\Modifiers\RemoveAnimationModifier; use Intervention\Image\Modifiers\ResizeDownModifier; use Intervention\Image\Modifiers\ResizeModifier; @@ -181,6 +182,11 @@ public function setProfile(ProfileInterface $profile): ImageInterface return $this->modify(new ProfileModifier($profile)); } + public function removeProfile(): ImageInterface + { + return $this->modify(new ProfileRemovalModifier()); + } + public function sharpen(int $amount = 10): ImageInterface { return $this->modify(new SharpenModifier($amount)); diff --git a/src/Interfaces/ImageInterface.php b/src/Interfaces/ImageInterface.php index 36413a16..ac34e691 100644 --- a/src/Interfaces/ImageInterface.php +++ b/src/Interfaces/ImageInterface.php @@ -167,6 +167,13 @@ public function profile(): ProfileInterface; */ public function setProfile(ProfileInterface $profile): ImageInterface; + /** + * Remove ICC color profile from the current image + * + * @return ImageInterface + */ + public function removeProfile(): ImageInterface; + /** * Sharpen the current image with given strength * diff --git a/src/Modifiers/ProfileRemovalModifier.php b/src/Modifiers/ProfileRemovalModifier.php index 651e5e66..b01c9143 100644 --- a/src/Modifiers/ProfileRemovalModifier.php +++ b/src/Modifiers/ProfileRemovalModifier.php @@ -2,6 +2,6 @@ namespace Intervention\Image\Modifiers; -class ProfileModifier extends AbstractModifier +class ProfileRemovalModifier extends AbstractModifier { }