ImageEffectTrait
trait ImageEffectTrait
Trait ImageEffectTrait
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.
Applies Adobe Lightroom filter.
Changes the main background color to the one specified, as if a 'theme change' was applied (e.g. dark mode vs light mode).
Details
                        static            ThresholdEffectAction
    blackWhite(int|null $threshold = null)
        
    
    Converts the image to black and white.
                        static            Colorize
    colorize(int|null $level = null, string|null $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|null $level = null)
        
    
    Changes the color scheme of the image to sepia.
                        static            AssistColorBlind
    assistColorBlind(int|null $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|null $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.
                        static            LightroomEffect
    lightroom()
        
    
    Applies Adobe Lightroom filter.
                        static            ThemeEffect
    theme(string $color, int|null $photoSensitivity = null)
        
    
    Changes the main background color to the one specified, as if a 'theme change' was applied (e.g. dark mode vs light mode).