Ignore ImageMagick deprecation of "convert" command. #29569
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ignoring the deprecation warning (present since IM 7.1.1-33, May 2024) is the quickest fix.
The proper fix would be to switch to using "magick" everywhere but the command's syntax is a bit different and the CLI usage thus needs to be verified; moreover this would break users with very old installs of imagemagick (unless adding some version sniffing code) although IMv7 has been out since 2016 so that is likely acceptable. (That proper fix likely also needs some fiddling around the special-casing of
rcParams["animation.convert_path"] = "convert"
in ImageMagickBase.bin_path; e.g. should the rcParams be renamed to"animation.magick_path"
and have "magick" be the special case...)Closes (in the short term) #29567, although (per the above) a better fix would be welcome, and it would also be nice if this could have been caught by CI... Likely worth a backport too?
PR summary
PR checklist