Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Resize EPS

$
0
0
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";
        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.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>