Adjust
abstract class Adjust
Adjusts the visual appearance of an image or video.
Methods
brightness(int|null $level = null)
Adjusts the brightness.
contrast(int|null $level = null)
Adjusts the contrast.
saturation(int|null $level = null)
Adjusts the color saturation.
gamma(int|null $level = null)
Adjusts the gamma level.
by3dLut(string|null $lutId = null)
Applies the 3D LUT file to the asset.
generic(string $name, mixed ...$args)
Applies any effect.
Details
static LevelEffectAction
brightness(int|null $level = null)
Adjusts the brightness.
static LevelEffectAction
contrast(int|null $level = null)
Adjusts the contrast.
static LevelEffectAction
saturation(int|null $level = null)
Adjusts the color saturation.
static LevelEffectAction
gamma(int|null $level = null)
Adjusts the gamma level.
static LutLayer
by3dLut(string|null $lutId = null)
Applies the 3D LUT file to the asset.
static EffectAction
generic(string $name, mixed ...$args)
Applies any effect.
This is a generic way to apply an effect. For example, you could set $name to "gamma" and $args to 50, and this would have the same effect as calling gamma(50).
Constants
| BRIGHTNESS |
|
| CONTRAST |
|
| SATURATION |
|
| GAMMA |
|
| RED |
|
| GREEN |
|
| BLUE |
|
| BRIGHTNESS_HSB |
|
| HUE |
|
| TINT |
|
| REPLACE_COLOR |
|
| RECOLOR |
|
| AUTO_BRIGHTNESS |
|
| AUTO_COLOR |
|
| AUTO_CONTRAST |
|
| FILL_LIGHT |
|
| IMPROVE |
|
| VIBRANCE |
|
| VIESUS_CORRECT |
|
| SHARPEN |
|
| UNSHARP_MASK |
|
| OPACITY_THRESHOLD |
|