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:
- The module MUST be installed using Composer, see Download contributed modules and themes using Composer
- 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
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
convertbinary cannot be found in the default shell path, you need to enter the full path to ImageMagick'sconvertexecutable.
Current maintainers
- mondrake - for the Drupal 8/9 branch.
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:
- Daniel F. Kudwien (sun)
- James Walker (walkah)
- Darrel O'Pry (dopry)
- Andrew Morton (drewish)
- Dan Morrison (dman)
- Nathan Haug (quicksketch)
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 toexec().
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
Issue fork imagemagick-3206264
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
Comment #3
mondrakeComment #4
mondrakeComment #5
mondrakeComment #6
mondrakeComment #7
mondrakeComment #9
mondrakeComment #10
mondrakeComment #11
mondrakeComment #12
mondrakeComment #13
mondrakeComment #14
mondrakeComment #15
mondrakeComment #16
mondrakeComment #17
mondrakeComment #18
mondrake