Error “Invalid Parameter” fom ImageMagick convert on Windows

后端 未结 6 2138
我在风中等你
我在风中等你 2020-12-30 23:39

I am trying to convert a PDF document into a PNG file using ImageMagick command line tools from a ASP.NET website. I create a new shell process and ahve it execute the follo

6条回答
  •  执笔经年
    2020-12-31 00:08

    A couple more options for fixing this:

    • Edit your Path system variable to contain the path to imagemagick as it's first content and then add the rest after it. This will make windows always find the imagemagic convert first before it finds the other convert program. So something like this: C:\Program Files\ImageMagick-6.9.2-Q16;C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin;...

    • Another option is to create a dedicated folder somewhere on your machine where you will place shortcuts for some of these name clashes. Then what you do is that you rename those shortcuts to meaningful names, for example convert_image_magick, then add the path to this folder to your system path. So now as you hit tab more, you will finally find the right program you want to run

提交回复
热议问题