#108933Replace deprecated +matte with -alpha off for ImageMagick 7 compatibility
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
- main 93698[BUGFIX] Fix operator precedence in imageMagickExec
- 13.4 93706[BUGFIX] Fix operator precedence in imageMagickExec
- 12.4 93707[BUGFIX] Fix operator precedence in imageMagickExec
- 12.4 92831[TASK] Create compatibility for ImageMagick 7
- 13.4 92830[TASK] Create compatibility for ImageMagick 7
- main 92785[TASK] Create compatibility for ImageMagick 7