EPS to JPG becomes black and white
Posted: 2014-09-23T02:23:19-07:00
Hi,
I am using ImageMagick version 6.8.8.901 and GhostScript 9.15.
When I convert an EPS (DCS 1.0), the resulting JPG is correct.
However, when I convert DCS 2.0, the resulting JPG is in black and white.
I tried using ColorSpace sRGB, scRGB, RGB and CMYK
Below is the code snippet
MagickReadSettings settings = new MagickReadSettings();
using (MagickImage image = new MagickImage(fileName))
{
image.ColorSpace = ColorSpace.sRGB;
image.Quality = 100;
image.CompressionMethod = ImageMagick.CompressionMethod.LosslessJPEG;
image.Write(JpgFileName);
image.Dispose();
}
Let me know what needs to be changed in the code.
Thanks in advance.
I am using ImageMagick version 6.8.8.901 and GhostScript 9.15.
When I convert an EPS (DCS 1.0), the resulting JPG is correct.
However, when I convert DCS 2.0, the resulting JPG is in black and white.
I tried using ColorSpace sRGB, scRGB, RGB and CMYK
Below is the code snippet
MagickReadSettings settings = new MagickReadSettings();
using (MagickImage image = new MagickImage(fileName))
{
image.ColorSpace = ColorSpace.sRGB;
image.Quality = 100;
image.CompressionMethod = ImageMagick.CompressionMethod.LosslessJPEG;
image.Write(JpgFileName);
image.Dispose();
}
Let me know what needs to be changed in the code.
Thanks in advance.