Issue Task Closed

#108933Replace deprecated +matte with -alpha off for ImageMagick 7 compatibility

André Buchmann 02/10/26, 22:48 updated 03/31/26, 08:11

Description

With the transition from ImageMagick 6 (IM6) to ImageMagick 7 (IM7), the legacy +matte option has been deprecated and, in many IM7 builds/environments, no longer functions as expected.

In IM6, +matte was used to disable the alpha channel. In IM7, the command-line interface has been standardized to use the -alpha operator.

According to the official ImageMagick 6 documentation (https://legacy.imagemagick.org/Usage/masking/#alpha_off), the -alpha off option is also available.

Switching to -alpha off provides a “universal” syntax that works across both IM6 and IM7.

—-

ImageMagick 7 with +matte:
!clipboard-202602102345-xaztn.png!
clipboard-202602102346-kmg9c.png

ImageMagick 7 with -alpha off:
!clipboard-202602102338-afpcf.png!
clipboard-202602102338-8di2h.png

Reviews 6