2012-07-25 2 views
0

converting PDF to JPG에 대해 C#에서 웹 응용 프로그램을 만들었습니다. 명령 행을 통해 ImageMagick을 사용했습니다.ImageMagick이 Windows 서버에서 작동하지 않습니다.

로컬에서는 정상적으로 작동하지만 서버에 업로드하면 작동하지 않습니다.

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

답변

0
Imagemagick requires you to install ghostscript. 

It's required by ImageMagick to interpret Postscript and PDF. 

지금은 모든 시스템에서 잘 작동 발생하지.

관련 문제