ImageColorEffectTrait
trait ImageColorEffectTrait
Trait ImageColorEffectTrait
Methods
Converts the image to black and white.
Colorizes the image.
Converts the image to gray-scale (multiple shades of gray).
Negates the image colors (negative).
Changes the color scheme of the image to sepia.
Applies stripes to the image to help people with common color-blind conditions to differentiate between colors that are similar for them.
Simulates the way an image would appear to someone with the specified color blind condition.
Details
static ThresholdEffectAction
blackWhite(int $threshold = null)
Converts the image to black and white.
static Colorize
colorize(int $level = null, string $color = null)
Colorizes the image.
static EffectAction
grayscale()
Converts the image to gray-scale (multiple shades of gray).
static EffectAction
negate()
Negates the image colors (negative).
static LevelEffectAction
sepia(int $level = null)
Changes the color scheme of the image to sepia.
static AssistColorBlind
assistColorBlind(int $strength = null)
Applies stripes to the image to help people with common color-blind conditions to differentiate between colors that are similar for them.
You can replace colors using the xRay() method of the \Cloudinary\Transformation\AssistColorBlind class.
static SimulateColorBlind
simulateColorBlind(string $condition = null)
Simulates the way an image would appear to someone with the specified color blind condition.
For a list of supported color blind conditions see the \Cloudinary\Transformation\SimulateColorBlind class.