mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Add shortcut method Image::removeProfile()
This commit is contained in:
@@ -51,6 +51,7 @@ use Intervention\Image\Modifiers\PadModifier;
|
|||||||
use Intervention\Image\Modifiers\PixelateModifier;
|
use Intervention\Image\Modifiers\PixelateModifier;
|
||||||
use Intervention\Image\Modifiers\PlaceModifier;
|
use Intervention\Image\Modifiers\PlaceModifier;
|
||||||
use Intervention\Image\Modifiers\ProfileModifier;
|
use Intervention\Image\Modifiers\ProfileModifier;
|
||||||
|
use Intervention\Image\Modifiers\ProfileRemovalModifier;
|
||||||
use Intervention\Image\Modifiers\RemoveAnimationModifier;
|
use Intervention\Image\Modifiers\RemoveAnimationModifier;
|
||||||
use Intervention\Image\Modifiers\ResizeDownModifier;
|
use Intervention\Image\Modifiers\ResizeDownModifier;
|
||||||
use Intervention\Image\Modifiers\ResizeModifier;
|
use Intervention\Image\Modifiers\ResizeModifier;
|
||||||
@@ -181,6 +182,11 @@ final class Image implements ImageInterface, Countable
|
|||||||
return $this->modify(new ProfileModifier($profile));
|
return $this->modify(new ProfileModifier($profile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function removeProfile(): ImageInterface
|
||||||
|
{
|
||||||
|
return $this->modify(new ProfileRemovalModifier());
|
||||||
|
}
|
||||||
|
|
||||||
public function sharpen(int $amount = 10): ImageInterface
|
public function sharpen(int $amount = 10): ImageInterface
|
||||||
{
|
{
|
||||||
return $this->modify(new SharpenModifier($amount));
|
return $this->modify(new SharpenModifier($amount));
|
||||||
|
@@ -167,6 +167,13 @@ interface ImageInterface extends IteratorAggregate, Countable
|
|||||||
*/
|
*/
|
||||||
public function setProfile(ProfileInterface $profile): ImageInterface;
|
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
|
* Sharpen the current image with given strength
|
||||||
*
|
*
|
||||||
|
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
namespace Intervention\Image\Modifiers;
|
namespace Intervention\Image\Modifiers;
|
||||||
|
|
||||||
class ProfileModifier extends AbstractModifier
|
class ProfileRemovalModifier extends AbstractModifier
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user