Image::colorize
Change the color balance of the current image
3.3M Downloads / Month
Open Source MIT License
3.3M Downloads / Month
Open Source MIT License
public Intervention\Image\Image colorize(integer $red, integer $green, integer $blue)
Change the RGB color values of the current image on the given channels red, green and blue. The input values are normalized so you have to include parameters from 100 for maximum color value 0 for no change and -100 to take out all the certain color on the image.
Add or take out a amount of red color on the image. Use values between -100 and +100.
Add or take out a amount of green color on the image. Use values between -100 and +100.
Add or take out a amount of blue color on the image. Use values between -100 and +100.
Instance of Intervention\Image\Image
// create new Intervention Image $img = Image::make('public/foo.jpg'); // take out red color and add blue $img->colorize(-100, 0, 100); // just add a little green tone to the image $img->colorize(0, 30, 0);