-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Use ImageMagick's magick.exe if convert.exe is not installed #11847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
On Windows, ImageMagick >= 7 does not include convert.exe by default. Instead the converter is built into magick.exe.
I am not completely sure that this is the correct thing to do but it would make it easier for many people on windows to use imagemagick so I think that I am positive. What about first testing Are there cases when it exist a |
This PR just fixes the existing functionality (initializing mpl settings from the registry settings created by ImageMagick installers on Windows) for the ImageMagick >= 7. Using a |
I think that it would fit into this pr but it is not that important either. I just think that it would be better to change the rcparameter to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Further discussion about whether to first try convert or magick can happen later.
Thanks! |
Would this still be eligible for 3.0, or should it go in 3.1? |
Is it assured that when you install imagemagick > 7 on other systems (linux, mac) that they always install a |
At least https://www.imagemagick.org/script/porting.php documents that "To reduce the footprint of the command-line utilities, these utilities [convert, etc.] are symbolic links to the magick utility. You can also invoke them from the magick utility, for example, use magick convert logo: logo.png to invoke the convert utility." Let's milestone this for 3.0 and ping @tacaswell for the final decision. |
These are considered legacy utilities. There's an option in the ImageMagick >= 7 installer (disabled by default) to install the utilities. |
@cgohlke My point is that the porting docs don't even mention the fact that they may not be installed. But that's not particularly relevant as we're stuck with the actual behavior on Windows anyways. @ImportanceOfBeingErnest Most Linux users would get imagemagick from their distro packages. Arch Linux packages IM7 including the "convert" command. None of Fedora (28), Debian (unstable), Ubuntu (18.04) appear to even package IM7 at all. So in practice that means that anyone who has IM7 without a "convert" command likely compiled IM themselves -- I wouldn't worry too much about that case. |
Many Linux distros didn't upgrade to IM7 specifically because of the lack of the old executables. |
I'd merge this as fixing a problem, and defer the discussion of a more general fix to someone finding that to be a problem. However, I don't have a PC, and can't test that this actually works, and it has no test coverage. If other reviewers are sure it works and don't think it needs test coverage, they should feel free to merge. |
@meeseeksdev backport to v2.2.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
…847-on-v3.0.x Backport PR #11847 on branch v3.0.x
PR Summary
On Windows, ImageMagick >= 7 does not include convert.exe by default. Instead the converter is built into magick.exe.
Fixes #11792
PR Checklist