Skip to main content
March 1, 2011
Question

How to get color value from EPS?

  • March 1, 2011
  • 1 reply
  • 1140 views

Hi All,

Pl. help me to get the color value using JSX from the EPS images which are placed in InDesign CS3?

Thanks,

Praveen

This topic has been closed for replies.

1 reply

March 1, 2011

Anyone pl. respond?

Thanks,

Praveen

tpk1982
Brainiac
March 1, 2011

Did you get any job from website?


Loic.Aigon
Brainiac
March 4, 2011

You're not going to be able to do this directly in scripting -- the InDesign scripting Document Object Model doesn't give access to the graphic content of a placed image. You could export the image to a file and use some other tool to make examine the colors. And EPS files are kind of complicated -- just what do you mean by the color value? The average value of the whole bounding box? Some particular point?


It really depends on the EPS type (Photoshop, Illustrator Corel ? Raster, vector ?).

If you have raster EPS, you may have access to the space of the image :

app.selection[0].space //RVB,Grayscale,whatever

But it works only with photoshop EPSs.

Loic