0
ImageMagickでファイルを処理するためにファイルを配置する必要がある場所を特定できません。私は自分のASP.NET MVC Webサイトでそれを使用しようとしています。それがどうすれば出力されるのかを指定できますか?イメージファイルファイルパス? 「システムはファイル指定のエラーを見つけることができません」
私はここで探していると私は何か欠けていることがMUT:ここ http://www.imagemagick.org/script/command-line-processing.php
をプロセスを呼び出すために私のコードです:
//Location of the ImageMagick applications
private const string pathImageMagick = @"C:\Program Files\ImageMagick-6.7.3-8";
private const string appImageMagick = "MagickCMD.exe";
CallImageMagick("convert -density 400 SampleCtalog.pdf -scale 2000x1000 hi-res%d.jpg");
private static string CallImageMagick(string fileArgs)
{
ProcessStartInfo startInfo = new ProcessStartInfo
{
Arguments = fileArgs,
WorkingDirectory = pathImageMagick,
FileName = appImageMagick,
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardOutput = true
};
using (Process exeProcess = Process.Start(startInfo))
{
string IMResponse = exeProcess.StandardOutput.ReadToEnd();
exeProcess.WaitForExit();
exeProcess.Close();
return !String.IsNullOrEmpty(IMResponse) ? IMResponse : "True";
}
}