Imagine adapter

The rendering engine for media is able to use different imagine adapters. By default the bundle detects the installed adapters and uses the most mature implementation by default.

Available adapters are:

GD

The simplest adapter is GD and it has no external dependencies besides the PHP extension.

Imagick

This extension uses imagemagick to render the images.

To install it use following commands:

Mac:

brew install imagemagick
pecl install imagick

Linux:

apt-get install libmagickwand-dev inkscape
pecl install imagick

VIPS

This extension uses vips to render the images.

To install it use following commands:

Mac:

brew install pkg-config
brew install vips
pecl install vips
composer require rokka/imagine-vips

Linux:

apt-get install libvips-dev
pecl install vips
composer require rokka/imagine-vips

contao/imagine-svg

This adapter only handles SVG images and is an addition to the other adapters.

To install it use following command:

composer require contao/imagine-svg