RemoveBackground
class RemoveBackground extends EffectAction
Class RemoveBackground
Makes the background of an image transparent (or solid white for JPGs).
Use when the background is a uniform color.
Learn more: Background removal
Methods
screen(bool $screen = true)
Provides better results for images with near perfect green/blue background.
Details
__construct(bool $screen = false, string|Color $colorToRemove = null)
RemoveBackground constructor.
RemoveBackground
screen(bool $screen = true)
Provides better results for images with near perfect green/blue background.
RemoveBackground
colorToRemove(string|Color $colorToRemove)
Overrides the algorithm's choice of background color.
Constants
SCREEN |
|
COLOR_TO_REMOVE |
|