in reply to How to get the color values from eps files

If you have ImageMagick installed and just need to retrieve the colour space (RGB, CMYK, etc.):
use Image::Magick; my $image = Image::Magick->new; my $x = $image->Read('filename.eps'); warn "$x" if "$x"; my $colorspace = $image->Get('colorspace'); print "$colorspace\n";