ananthakumarj has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I need to get color values (CMYK, RGB, MONO) from "EPS" files, is this possible... If yes is there any module available to achieve this. Please suggest how to do this..

Regards,

Kumar J

  • Comment on How to get the color values from eps files

Replies are listed 'Best First'.
Re: How to get the color values from eps files (exiftool/ Image::ExifTool)
by Anonymous Monk on Jul 28, 2015 at 04:02 UTC

      Hi Thanks for reply

      I need to get values without meta information

      If meta not given it's not working...

      Please correct if i am wrong...

      Regards, Kumar J

        Hi Thanks for reply. I need to get values without meta information. If meta not given it's not working... ...Please correct if i am wrong...Regards, Kumar J

        If exiftool isn't helping you, then Imager, Image::Magick and the like are the ticket

Re: How to get the color values from eps files
by tangent (Parson) on Jul 28, 2015 at 19:15 UTC
    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";