Learn how to quickly migrate from Intervention Image version 2 to version 3. See what new features are available and what changes have been made in the update.

New Features

Intervention Image 3 has been rewritten from the ground up with very little code carried over from the previous version. This means a more modern and sophisticated architecture and API that takes advantage of the modern features of PHP 8+. There are a few key features that further improve the library.

API Changes

Removed Features

Other Changes

  • The caching library of Intervention Image 2 is not supported by the new version.

  • The service providers for the Laravel framework were removed to avoid a dependency to the framework and to highlight Intervention Image rather framework agnostic, which it always was. However, there is an official package for Laravel integration

  • It is no longer possible to create images from an URI directly. The data must first be loaded by a dedicated HTTP client and then passed to the image library. Intervention Image is not responsible for HTTP client operations.

  • It is no longer possible to pass color values as array.

  • If you use the Laravel framework and a configuration file, it is necessary to adjust the driver settings option. In version 2, the driver was configured via a string such as gd or imagick. In version 3, this is done via the class name of the driver like Intervention\Image\Drivers\Imagick\Driver or Intervention\Image\Drivers\Gd\Driver. Read further details about configuration and Laravel Integration

Edit