---
application: "Intervention Image"
version: "Version 2"
status: "eol"
---

# Image::reset

## Reset current image to a previously saved state



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

Resets all of the modifications to a state saved previously by [backup](https://image.intervention.io/v2/api/backup.md) under an optional **name**.

### Parameters

#### name (optional)
The name of the backup in memory. Default: *default*


### Return Values
Instance of `Intervention\Image\Image`

### Examples

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

// backup status
$img->backup();

// perform some modifications
$img->resize(320, 240);
$img->invert();
$img->save('public/small.jpg');

// reset image (return to backup state)
$img->reset();

// perform other modifications
$img->resize(640, 480);
$img->invert();
$img->save('public/large.jpg');
```

### See also

- [backup](https://image.intervention.io/v2/api/backup.md)

---

## Become a Sponsor

### Intervention Image needs your help to keep the project going

Intervention Image is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)