Magic.Net with GhostScript converting eps to svg is blank in illustrator

390 Views Asked by At
Windows 10 home 64bit.

I have very small app in c# which should convert .eps to .svg. Using Magic.Net-Q16-AnyCPU as a nuget also installed on windows GhostScript gs952w32.exe.

Function for conversion:

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

image is converted and also I can open it via some browsers websites which can read svg. But when I try it open with illustrator it shows an error "Could not find the linked file ''. Choose replace to select another file or Ignore to leave the link unchanged." And after opening an image is empty.

1

There are 1 best solutions below

0
On BEST ANSWER

According to github thread on Magic.Net

It seems that Illustrator does not support embeded PNG files. ImageMagick/Magick.NET is probably not the best tool to convert from EPS to SVG. The image will be changed from a vector format to a raster image.