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

New Post: Issues with reading EPS image after upgrading to 7.0.0.0013

$
0
0
EDIT: Thought I solved it by changing the color space, but it turns out the contrast was off (images turned out to gray-ish) and I still got this error in the logs: Error when loading vector image : Typography.GUI.vshost.exe: PostscriptDelegateFailed `The system cannot find the file specified.
' @ error/ps.c/ReadPSImage/951

Once I switched back to the older library anch changed back the color spaces the problem went away (no warnings, good contrast).

I solved the problem by changing the color space for the input image:
var settings = new MagickReadSettings { Density = new PointD(density * 100, density * 100), ColorSpace = ColorSpace.GRAY};
                using (var mi = new MagickImage(path, settings))
                {
                    // not needed anymore mi.ColorSpace = ColorSpace.GRAY;
                    mi.Format = MagickFormat.Png;
                    return Image.GetInstance(mi.ToByteArray());
                }

Viewing all articles
Browse latest Browse all 3693

Trending Articles