Allows to use ImageMagick or GraphicsMagick as image toolkit for Image API in Drupal. This integration is based on invoking the convert binary through shell access to process images. The Imagick module is an alternative toolkit module that uses the Imagick PHP extension instead.

Requirements

  • ImageMagick (or GraphicsMagick) needs to be installed on your server and the convert (or gm) binary needs to be accessible and executable from PHP.
  • The PHP configuration must allow invocation of proc_open() (which is security-wise identical to exec()).

Consult your server administrator or hosting provider if you are unsure about these requirements.

Branches and installation

Versions 7.x (for Drupal 7):
Install as usual, see installing contributed modules for further information.

Versions 8.x (for Drupal 8 and above):
The module MUST be installed using Composer, see Download contributed modules and themes using Composer.

Require the module via

$ composer require drupal/imagemagick

This will download both the module release appropriate for the Drupal version in use, and any dependency.

Configuration

  • Go to Administration » Configuration » Media » Image toolkit and change the image toolkit to ImageMagick.
  • If the convert binary cannot be found in the default shell path, you need to enter the full path to ImageMagick's convert executable.

Project information

Releases