public Intervention\Image\Image reset([string $name])

Resets all of the modifications to a state saved previously by backup under an optional name.


name (optional)

The name of the backup in memory. Default: default

Return Values

Instance of Intervention\Image\Image


// create an image
$img = Image::make('public/foo.jpg');

// backup status

// perform some modifications
$img->resize(320, 240);

// reset image (return to backup state)

// perform other modifications
$img->resize(640, 480);

See also