Image::invert

Invert the colors of the current image

2.9M Downloads / Month

Open Source MIT License

You are viewing the documentation for Intervention Image 2, this version has reached EOL. Please consider upgrading to version 3.

public Intervention\Image\Image invert()

Invert all colors of the current image.

Parameters

none

Return Values

Instance of Intervention\Image\Image

Examples

// create Image from file and reverse colors
$img = Image::make('public/foo.jpg')->invert();

See also

Edit