Copy link to clipboard
Copied
Hi all,
We have using the InDesign CS3 5.0.4, windows, javascript. We need to get the color space and resolution of the graphics (.eps) file using scripting.
The properties of the image like (actualPpi and effectivePpi will return the value only for the .tiff. and .jpg etc) but it will not return the .eps file resolution values.
Kindly give me the suggesting for the decrepancies.
Regards,
Nagaraj
Copy link to clipboard
Copied
EPS files don't have a resolution, because they're not bitmaps -- not even if they contain a bitmap. You can check that in the links panel: there are no entries for the EPS's resolution.
Peter
Copy link to clipboard
Copied
You would have to analyze the PostScript code of the EPSF. And that is a very tough task not posible with ExtendScript from InDesign. It might be possible with PhotoShop EPS files to open them programmatically in PhotoShop, read out resolution and color space and feed the findings back to a text report or a message that pops up in InDesign. But generally speaken for any kind of EPSF, I would say no chance to do it reliably.
Uwe
Copy link to clipboard
Copied
... open them programmatically in PhotoShop, read out resolution and color space ...
On opening them in Photoshop, it asks you "what resolution shall I use, and what color space shall I apply?"
A single EPS may contain any number of embedded bitmaps, with any horizontal and vertical resolution, and in any color space. You can use only a few of these with Illustrator -- and even only one at a time with Photoshop --, but other programs allow just about every possible combination.
Not to mention procedurally generated bitmaps, also possible with PostScript.
Copy link to clipboard
Copied
I once thought about rendering eps to pdf and making a pdf report which would reveal every bitmap image in an eps file. But I never took the time to write some appropriate scripts to do that kind of job (and I'm not quite shure, if this is scriptable at all ...).
Tobias
Copy link to clipboard
Copied
There is a fair chance with PhotoShop, if the EPSF is a container for a usual bitmap without vecor data except a clipping path. But in every other case I'd say no.
Uwe
Copy link to clipboard
Copied
Thanks to all for given the useful information......