【问题标题】:Magic.Net with GhostScript converting eps to svg is blank in illustrator使用 GhostScript 将 eps 转换为 svg 的 Magic.Net 在 Illustrator 中是空白的
【发布时间】:2020-07-26 19:40:20
【问题描述】:
Windows 10 home 64bit.

我在 c# 中有一个非常小的应用程序,应该将 .eps 转换为 .svg。 Using Magic.Net-Q16-AnyCPU 作为 nuget 也安装在 windows GhostScript 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." 而且打开后图片是空的。

【问题讨论】:

  • Ghostscript 不生成 SVG,所以我认为这与 Ghostscript 无关。图像应用程序必须从 Ghostscript 获取渲染输出并从位图生成 SVG。
  • @KenS,MagicNet 使用 Ghostscript 打开 eps 文件。
  • 我敢肯定,我说了这么多,但它必须从 Ghostscript 获取输出并对其进行其他操作以制作 SVG,因为 Ghostscript 不生成 svg。现在,如果您可以证明 Ghostscript 生成的中间文件是错误的,那么我非常乐意接受这是一个 Ghostscript 问题,但是 SVG 的生成(这似乎是问题所在)不是由 Ghostscript 完成的.

标签: c# imagemagick adobe-illustrator magicknet


【解决方案1】:

根据github thread on Magic.Net

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-30
    • 1970-01-01
    • 2016-01-20
    • 2012-11-21
    相关资源
    最近更新 更多