BlurredBackground
class BlurredBackground extends Background
Applies a blur to the background of a video when resizing with padding.
Learn more: Apply blurred video background
Methods
Selects the predominant color while taking only the image border pixels into account.
Selects the predominant color while taking all pixels in the image into account.
Base the gradient fade effect on the predominant colors in the border pixels of the image.
Base the gradient fade effect on the predominant colors in the image.
Sets the color.
BlurredBackground constructor.
Applies blurred background (Relevant only for videos).
Applies background color automatically.
Applies generative AI background.
Sets the intensity of the blur.
Sets the brightness of the background.
Details
static AutoBackground
border()
Selects the predominant color while taking only the image border pixels into account.
static AutoBackground
predominant()
Selects the predominant color while taking all pixels in the image into account.
static AutoGradientBackground
borderGradient(int|string $gradientColors = null, string $gradientDirection = null)
Base the gradient fade effect on the predominant colors in the border pixels of the image.
static AutoGradientBackground
predominantGradient(int|string $gradientColors = null, string $gradientDirection = null)
Base the gradient fade effect on the predominant colors in the image.
$this
color(string $color)
Sets the color.
__construct(int $intensity = null, int $brightness = null)
BlurredBackground constructor.
static BlurredBackground
blurred(int $intensity = null, int $brightness = null)
Applies blurred background (Relevant only for videos).
static AutoBackground
auto(string $autoBackground = null)
Applies background color automatically.
static GenerativeFillBackground
generativeFill(string|array $prompt = null, bool $ignoreForeground = null)
Applies generative AI background.
$this
intensity(int $intensity)
Sets the intensity of the blur.
$this
brightness(int $brightness)
Sets the brightness of the background.