Done:

  • drop support for D8.8 and D9.0
  • check if any deprecated test methods can be replaced
  • remove fieldset wrapping the prepend arguments field in the UI
  • enable WEBP image file format by default in config
  • add AVIF and HEIC file formats to config, leaving them disabled

Project page

Allows to use ImageMagick or GraphicsMagick as image toolkit for Image API in Drupal 7, 8 and 9. 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: Install as usual, see installing contributed modules for further information.

Versions 8.x:

Previous releases of the module run with lower versions of Drupal 8 and 9, but are no longer maintained.

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.

Current maintainers

Previous maintainers

ImageMagick integration for Drupal evolved through many different projects and developers in the past, and most of the code wouldn't exist without the efforts of:

Release note

This release provides bug fixes. Support for Drupal 8.8.x and 9.0.x is dropped in this release.

Requirements

  • The module MUST be downloaded or updated using Composer, see Download contributed modules and themes using Composer. This ensures that all dependency modules get downloaded as well.
  • PHP 7.1 or higher
  • Drupal 8.9.x or 9.1.x and higher
  • The File Metadata Manager and the Sophron modules, with their own dependencies
  • Either ImageMagick (http://www.imagemagick.org) or GraphicsMagick (http://www.graphicsmagick.org) need to be installed on your server and the convert 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().

Installing or updating

  • Install with Composer: $ composer require 'drupal/imagemagick:^3.2'
  • If updating from Imagemagick 8.x-2.x, ensure to run the database updates.

Changes since 8.x-3.1

  • Issue #3206264 by mondrake: Release 8.x-3.2
  • Issue #3142870 by deulenko: Use better assertions where possible, replace deprecated ones
  • Issue #3204498 by Matthijs, mondrake: Multiple crop operations result in a 1x1px image
  • Issue #3182140 by paulocs: drupalPostForm in functional tests is deprecated
  • Issue #3146489 by mondrake: Bump PHP to 7.1
  • Issue #3146480 by mondrake: Silence deprecations during D9 cycle
  • Issue #3146479 by mondrake: Add void return typehint to test setUp and test* methods
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Status: Active » Needs review
mondrake’s picture

Issue summary: View changes

  • mondrake committed fff333a on 8.x-3.x
    Issue #3206264 by mondrake: Release 8.x-3.2
    
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Issue summary: View changes
mondrake’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.