Repository navigation
fix: change convert.exe syntax to avoid clash in Windows - #3416
Merged
Merged
Conversation
On Windows (I built with CMake) for some weird reason calling ImageMagick's convert calls Windows/System32/convert.exe . It's odd because my Path env var seems to list the mingw64 directory first, but a solution is using the 'magick' syntax, where you just call 'magick' to convert as per https://imagemagick.org/script/command-line-tools.php The problem is widely known as per https://stackoverflow.com/questions/3060205/error-invalid-parameter-fom-imagemagick-convert-on-windows , I was getting the same 'Invalid Parameter' error The patch uses 'magick convert' (legacy syntax), instead of 'magick' for compatibility with ImageMagick 6, since many distros don't have official packages for ImageMagick 7, despite the release being over 5 years old: https://packages.debian.org/search?searchon=sourcenames&keywords=imagemagick https://packages.fedoraproject.org/pkgs/ImageMagick/ImageMagick/ https://packages.ubuntu.com/search?keywords=imagemagick The reason is that v7's syntax is not fully compatible with v6 but it our syntax seems safe TL;DR: Instead of using ImageMagick with 'convert' use 'magick convert' since Win has another 'convert' program Supersedes: synfig#2951 Co-authored-by: Eduardo Hernández <[email protected]>
rodolforg
force-pushed
the
fix-imagemagick-convert-windows
branch
from
September 6, 2024 08:27
2b94efd to
20c6a83
Compare
ice0
approved these changes
Sep 14, 2024
Collaborator
|
Merged. Thank you! |
mosasauridae
pushed a commit
to mosasauridae/synfig
that referenced
this pull request
Sep 29, 2024
On Windows (I built with CMake) for some weird reason calling ImageMagick's convert calls Windows/System32/convert.exe . It's odd because my Path env var seems to list the mingw64 directory first, but a solution is using the 'magick' syntax, where you just call 'magick' to convert as per https://imagemagick.org/script/command-line-tools.php The problem is widely known as per https://stackoverflow.com/questions/3060205/error-invalid-parameter-fom-imagemagick-convert-on-windows , I was getting the same 'Invalid Parameter' error The patch uses 'magick convert' (legacy syntax), instead of 'magick' for compatibility with ImageMagick 6, since many distros don't have official packages for ImageMagick 7, despite the release being over 5 years old: https://packages.debian.org/search?searchon=sourcenames&keywords=imagemagick https://packages.fedoraproject.org/pkgs/ImageMagick/ImageMagick/ https://packages.ubuntu.com/search?keywords=imagemagick The reason is that v7's syntax is not fully compatible with v6 but it our syntax seems safe TL;DR: Instead of using ImageMagick with 'convert' use 'magick convert' since Win has another 'convert' program Supersedes: synfig#2951 Co-authored-by: Eduardo Hernández <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
On Windows (I built with CMake) for some weird reason calling ImageMagick's convert calls Windows/System32/convert.exe . It's odd because my Path env var seems to list the mingw64 directory first, but a solution is using the 'magick' syntax, where you just call 'magick' to convert as per https://imagemagick.org/script/command-line-tools.php
The problem is widely known as per https://stackoverflow.com/questions/3060205/error-invalid-parameter-fom-imagemagick-convert-on-windows , I was getting the same 'Invalid Parameter' error
The patch uses 'magick convert' (legacy syntax), instead of 'magick' for compatibility with ImageMagick 6, since many distros don't have official packages for ImageMagick 7, despite the release being over 5 years old:
The reason is that v7's syntax is not fully compatible with v6 but it our syntax seems safe
TL;DR:
Instead of using ImageMagick with 'convert' use 'magick convert' since Win has another 'convert' program
Supersedes: #2951