• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Possible to get the color space and resolution from the .eps file

Engaged ,
May 31, 2010 May 31, 2010

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

TOPICS
Scripting

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2010 Jun 01, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2010 Jun 01, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2010 Jun 01, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 01, 2010 Jun 01, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 01, 2010 Jun 01, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

LATEST

Thanks to all for given the useful information......

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines