Hey guys,
I'm trying to resize an EPS file, and the result EPS has a bigger file size than the original one, so I was wondering if there is some kind of fix for this, thanks in advanced:
var epsFile = @"C:\test.eps";
I'm trying to resize an EPS file, and the result EPS has a bigger file size than the original one, so I was wondering if there is some kind of fix for this, thanks in advanced:
var epsFile = @"C:\test.eps";
var result = @"c:\upload\EPS\";
MagickReadSettings settings = new MagickReadSettings();
settings.Density = new MagickGeometry(72, 72);
settings.ColorSpace = ColorSpace.sRGB;
MagickNET.SetGhostscriptDirectory(@"c:\upload\EPS");
using (var image = new MagickImage())
{
image.Read(epsFile, settings);
image.Resize(2700, 2700);
image.CompressionMethod = CompressionMethod.Zip;
image.Write(result + "newEps.eps");
}
PS: The original file size is: 483 KB and the result file is: 38,0 MB. So there is a big difference between the files.