EPS files - %Colorspace

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
Sashi
Posts: 5
Joined: 2011-09-07T22:54:43-07:00
Authentication code: 8675308
Location: Chennai, India

EPS files - %Colorspace

Post by Sashi » 2011-09-28T05:06:36-07:00

I have EPS files in grayscale mode and CMYK combinations. I need to identify where the EPS files are in grayscale or CMYK mode.
I used the %[Colorspace] to get information about the images.

If it is a color image - %Colorspace returns RGB. If it is a grayscale image - %Colorspace returns Gray.
In some cases eventhough the image is gray, %Colorspace returns RGB.

Please let me know on how to identify the grayscale and CMYK mode in EPS files.

thanks,
Sashi

User avatar
fmw42
Posts: 25734
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS files - %Colorspace

Post by fmw42 » 2011-09-28T09:48:07-07:00

use identify -verbose yourimage.eps and look at the information about colorspace. see if that is more accurate.

Sashi
Posts: 5
Joined: 2011-09-07T22:54:43-07:00
Authentication code: 8675308
Location: Chennai, India

Re: EPS files - %Colorspace

Post by Sashi » 2011-09-29T02:10:34-07:00

There is no difference with the information generated by -verbose and %[Colorspace]. Both are the same.

Please help me on how to idenity the EPS files as grayscale and CMYK mode.

regards,
Sashi

User avatar
fmw42
Posts: 25734
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS files - %Colorspace

Post by fmw42 » 2011-09-29T19:16:27-07:00

I am not that familiar with eps files. So I cannot help further apart from suggesting you post a link to your cmyk file and your problem on the bugs forum.

You could try from http://www.imagemagick.org/script/escape.php

%r image class and colorspace

and also try

%[channels]

and see what you get

but I suspect your eps file is not identifying itself properly as cmyk

Post Reply