我需要獲取eps文件的寬度和高度。c#meta data extractor for eps文件
我試圖https://github.com/drewnoakes/metadata-extractor
,但它並不適用於EPS文件的工作。
所以我用exiftool.exe並在程序上運行它。
但程序很慢。因爲它爲每個eps文件運行程序(exiftool.exe)。
是否有任何方法使用以獲得eps文件的寬度和高度更快?謝謝
下面是我得到的圖像
System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
string filename = tempPath;
pProcess.StartInfo.FileName = System.IO.Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]) + "\\exiftool.exe";
string toolPath = @"" + "\"" + filename + "\"";
pProcess.StartInfo.Arguments = toolPath;
pProcess.StartInfo.CreateNoWindow = true;
pProcess.StartInfo.UseShellExecute = false;
pProcess.StartInfo.RedirectStandardOutput = true;
pProcess.Start();
string strOutput = pProcess.StandardOutput.ReadToEnd();
pProcess.WaitForExit();
string source = strOutput;
先生的寬度和高度的代碼,如果我將其轉換爲EPS文件我需要設置其密度高質量的轉換圖像。如果我那樣做。轉換圖像的高度和寬度將不相同。我使用ImageMagick DLL。爲了那個原因。並且該鏈接還運行一個exe文件。這也將拖慢程序
可能的[如何獲取.ai或.eps文件的屬性?]的副本(http://stackoverflow.com/questions/12409452/how-to-get-the-properties-of-an-ai - 或 - eps文件) –
先生,如果我將其轉換爲eps文件,我需要設置其密度良好的質量轉換後的圖像。如果我那樣做。轉換圖像的高度和寬度將不相同。 –
http://stackoverflow.com/questions/24971184/extract-image-file-metadata –