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

# Intervention Image

## PHP Image Processing



Intervention Image is an open source **PHP image handling and manipulation** library. It provides an easier and expressive way to create, edit, and compose images and supports currently the three most common image processing libraries **GD Library**, **Imagick** or **libvips**.

The class is written to make PHP image manipulating easier and more expressive. No matter if you want to create image thumbnails, watermarks or format large image files Intervention Image helps you to manage every task in an easy way with as little lines of code as possible.

The library follows the FIG standard **PSR-2** to ensure a high level of interoperability between shared PHP code and is fully **unit-tested**.

### Getting started

The library requires at least **PHP version 5.4** and comes with **Laravel Facades and Service Providers** to simplify the optional framework integration.

- [Read the installation guide](https://image.intervention.io/v2/getting-started/installation.md)
- [Read about Laravel integration](https://image.intervention.io/v2/getting-started/installation#integration-in-laravel.md)

### Basic Examples

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

// now you are able to resize the instance
$img->resize(320, 240);

// and insert a watermark for example
$img->insert('public/watermark.png');

// finally we save the image as a new file
$img->save('public/bar.jpg');
```

#### Method chaining

Do the same in one line of code.

```php
$img = Image::make('public/foo.jpg')->resize(320, 240)->insert('public/watermark.png');
```

To view more code examples read the documentation on the individual methods [make](https://image.intervention.io/v2/api/make.md), [resize](https://image.intervention.io/v2/api/resize.md), [insert](https://image.intervention.io/v2/api/insert.md), [save](https://image.intervention.io/v2/api/save.md) and the introduction to [basic usage](https://image.intervention.io/v2/usage/overview.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)