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

Files 4

History 411

  1. André Buchmann commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-02-12T21:10:08+00:00" > 02/12/26, 21:10 </span>

    Applied in changeset commit:f57eb4419672264db01c1751e519a4e2389b63ca.