C# ImageMagick在windows服务器上不工作

C# ImageMagick在windows服务器上不工作,c#,web-applications,imagemagick,windows-server-2008-r2,C#,Web Applications,Imagemagick,Windows Server 2008 R2,我已经在c#中创建了一个web应用程序,用于通过命令行使用ImageMagick将PDF转换为JPG 这在本地很好用,但当我把它上传到服务器上时,它就不工作了 public string appPath = "C:\\Program Files\\ImageMagick-6.5.3-Q16"; Process myProcess = new Process(); myProcess.StartInfo.FileName = appPath + @"\convert"; myProcess.S

我已经在c#中创建了一个web应用程序,用于通过命令行使用
ImageMagick
将PDF转换为JPG

这在本地很好用,但当我把它上传到服务器上时,它就不工作了

public string appPath = "C:\\Program Files\\ImageMagick-6.5.3-Q16"; 

Process myProcess = new Process();
myProcess.StartInfo.FileName = appPath + @"\convert";
myProcess.StartInfo.Arguments = (@"-type truecolor -quality " + tbQuality.Text + " -colorspace " + cbColourSpace.SelectedValue.ToString().ToLower() + " -density " + tbDPI.Text + @" " + currentFile + resizeString + @" " + outputFile);
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
myProcess.WaitForExit();
这将成功运行,没有任何异常,但不会生成任何
JPG

Imagemagick requires you to install ghostscript.

It's required by ImageMagick to interpret Postscript and PDF.
现在它可以在任何系统上正常工作