How to override Windows' convert command by ImageMagick's one?

后端 未结 5 1966
时光说笑
时光说笑 2020-12-03 05:35

In Windows, a command called convert is used to convert the filesystems. When you type convert, it will ask you to specify a files

5条回答
  •  [愿得一人]
    2020-12-03 06:15

    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.

提交回复
热议问题