Reputation: 3308
In Windows, a command called convert
is used to convert the filesystems. When you type convert
, it will ask you to specify a filesystem.
In ImageMagick, convert
command is used for image processing.
The problem is, even after setting the environment variable for ImageMagick convert
, the tool doesn't get invoked. It calls only the Windows convert
command. How to override that?
Upvotes: 22
Views: 14731
Reputation: 3133
In powershell you can run this: $env:Path = "C:\path-to-convert\;$env:Path"
Now the imagemagick convert exe gets found because it comes first in the path.
Upvotes: 1
Reputation: 300
Renaming the ImageMagick convert.exe
worked well for me.
I didn't like using full path each time, and changing the system PATH variable isn't possible for me on the work PC.
After renaming convert.exe
to imgconvert.exe
, no other changes were needed. You could now use the new command anywhere from the command line without it being confused with the intrinsic Windows file system convert
Edit: As of version 7.0, the command is now magick.exe
, which no longer clashes with any native windows commands. So downloading the latest version if possible should solve the problem as well.
Upvotes: 5
Reputation: 1910
This is an old question, but the current solution with ImageMagick 7 is to use the "magick" command in place of "convert".
Upvotes: 41
Reputation: 152
This is an old question, but I encountered this problem today, and this is my solution in Windows 7.
Windows convert.exe is located in folder C:\Windows\System32
, so you have to modify the Windows PATH variable by putting the ImageMagick path (for example C:\Libs\ImageMagick-6.8.8-4
) before the path that loads System32
(ie. %SystemRoot%\System32
).
This will cause all ImageMagick executables to take priority over any similarly named system executables, which should do what you want but may cause unexpected behaviour.
Also, when you want to use the system convert.exe, you'll have to specify the full pathname such as C:\Windows\System32\convert.exe
.
Upvotes: 5
Reputation: 2785
Did you logoff and login?
Or specify the Imagemagick's convert by providing the complete path
Upvotes: 3