Super User Asked on December 20, 2021
Getting this on the latest version of Windows (via GitHub Actions):
Command failed: convert.exe "D:astonestonebuildimage.jpg" -fuzz 20% -fill ""#111111"" opaque ""#cc9aff"" "D:astonestonebuildimage.new.jpg"
Invalid Parameter - -fuzz
What is the deal? I tried using convert
instead of convert.exe
but it was the same problem. I installed ImageMagick with choco install imagemagick
. The end of the logs looks like this:
Download of ImageMagick-7.0.10-19-Q16-x64-dll.exe (32.51 MB) completed.
Hashes match.
Installing imagemagick.app...
imagemagick.app has been installed.
imagemagick.app can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of imagemagick.app was successful.
Software installed to 'C:Program FilesImageMagick-7.0.10-Q16'
imagemagick v7.0.10.19 [Approved]
imagemagick package files install completed. Performing other installation steps.
The install of imagemagick was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 3/3 packages.
See the log for details (C:ProgramDatachocolateylogschocolatey.log).
Any ideas how to get this working?
You can also use magick convert
instead of convert
.
Answered by Max on December 20, 2021
Windows has an existing convert.exe program to convert a FAT volume to NTFS. It appears this is being found earlier in your %PATH than the ImageMagick convert.exe.
You can verify this by running convert without any parameters. If you get a message 'Must specify a file system' then you are not running the ImageMagick executable.
If this is indeed the case, you can get around this by specifying the full location of the executable you want to run. I am guessing but it is probably:
C:Program FilesImageMagick-7.0.10-Q16binconvert.exe [parameters...]
You could add the ImageMagick bin directory to your %PATH but you would need to place it earlier than the main Windows directories for it to run before the 'standard' convert.exe but be aware that any other binaries in the IM folder would also take precedence. Another option is to add the IM directory to the end of your %PATH (it may be there already) and rename the IM convert.exe to something unique.
Answered by Mike Fitzpatrick on December 20, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP