Skip to content

[Bug]: ImageMagickWriter #29567

Open
Open
@pnsaeta

Description

@pnsaeta

Bug summary

Current versions of ImageMagick deprecate the "convert" command in favor of "magick". The code in Matplotlib.init() , line 476, needs to be changed from
path = 'convert' to path = 'magick'.

Code for reproduction

import matplotlib as mpl
mpl._get_executable_info('magick')

Actual outcome

Traceback (most recent call last):
File "", line 1, in
File "/Users/saeta/.virtualenvs/jl12/lib/python3.12/site-packages/matplotlib/init.py", line 476, in _get_executable_info
info = impl([path, "--version"], r"^Version: ImageMagick (\S*)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/saeta/.virtualenvs/jl12/lib/python3.12/site-packages/matplotlib/init.py", line 419, in impl
raise ExecutableNotFoundError(
matplotlib.ExecutableNotFoundError: Failed to determine the version of convert from convert --version, which output WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

Version: ImageMagick 7.1.1-43 Q16-HDRI aarch64 22550 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib zstd
Compiler: clang (16.0.0)

Expected outcome

_ExecInfo(executable='magick', raw_version='7.1.1-43', version=<Version('7.1.1.post43')>)

Additional information

No response

Operating system

MacOS

Matplotlib Version

3.9.3

Matplotlib Backend

macosx

Python version

3.12.8

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions