带有GhostScript将eps转换为svg的Magic.Net在插图中为空白

问题描述 投票:0回答:1
Windows 10 home 64bit.

我在C#中有一个非常小的应用程序,应将.eps转换为.svg。Windows ChostScript Using Magic.Net-Q16-AnyCPU上也安装了nuget作为gs952w32.exe

转换功能:

using (MagickImage image = new MagickImage(@"C:\folder1\1.eps"))
{
    image.Format = MagickFormat.Svg;
    image.Write(@"C:\folder2\1.svg");
}

图像已转换,我也可以通过一些可以读取svg的浏览器网站打开它。但是当我尝试用illustrator打开它时会显示错误"Could not find the linked file ''. Choose replace to select another file or Ignore to leave the link unchanged."并且在打开图像后为空。

c# imagemagick adobe-illustrator magicknet
1个回答
0
投票

根据github thread on Magic.Net

似乎Illustrator不支持嵌入的PNG文件。ImageMagick / Magick.NET可能不是从EPS转换为SVG的最佳工具。该图像将从矢量格式更改为光栅图像。

© www.soinside.com 2019 - 2024. All rights reserved.