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

Image Resolution, Including Photoshop EPS

Guest
Mar 11, 2008 Mar 11, 2008
With the help of you all I've been writing my fingers off, having fun and gettin' things done! Thanks to all of you. But now I'm back begging your assistance again!

The InDesign CS3 info pallet lists the effective and actual resolution of a placed image, including a Photoshop EPS file so I'm guessing that info is "scriptible." I'm seeing references to "actualPpi" and "effectivePpi" in relation to "EPS" and "Image" in some HTML help files someone on this site send a linked me to (more thanks!) as well as in the CS2 scripting reference but, curiously, not in the CS3 PDF scripting files.

I've tried things like InD.Selection(1).Graphics(1).EPS and .Image but with no luck. The actualPpi and effectivePpi are supposed to be "Array of number" but I've been unable to access either.

Any ideas?

Thank you again,
Ken
TOPICS
Scripting
1.0K
Translate
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 ,
Mar 11, 2008 Mar 11, 2008
Ken,
You need this:

>InD.Selection(1).EPSs(1).ActualPpi

(capitalisation is probably noy entirely correct here.)

Peter
Translate
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
Guest
Mar 11, 2008 Mar 11, 2008
Oy-vey, too easy. The same information seems to come from EPSs(1) as does Graphics(1). Any idea if/what the difference is.

Ken
Translate
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 ,
Mar 12, 2008 Mar 12, 2008
"Graphics" is a generic term for any graphic contents. There are four specific formats: eps, pdf, pict, and wmf. When you select a frame that has an EPS in it, and you say InD.Selection(1).Graphics.Count(), you get 1 back because your frame contains a graphic. And when you do InD.Selection(1).EPSs.Count() you also get 1 back, because the graphic is an EPS.

The generic graphic property "Graphic" has fewer properties than any of the specific formats. That's why ....EPSs(1).ActualPpi works and Graphics(1).ActualPpi does not.

Peter
Translate
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
Guest
Mar 12, 2008 Mar 12, 2008
Hmm, I ask because Graphics(1).ActualPpi and .EffectivePpi DO work, at least in CS3 for Windows.

How about the color space? The InD info panel shows colorspace for Photoshop EPS files. Any idea if THAT is available in the scripting.
Translate
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
Guest
Nov 19, 2009 Nov 19, 2009
LATEST

Hi __,

Now i got an answer for your question, that is How to find the color space of the image.

Graphic.space

R,

sudar

Translate
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 ,
Mar 12, 2008 Mar 12, 2008
>Hmm, I ask because Graphics(1).ActualPpi and .EffectivePpi DO work, at least in CS3 for Windows.

I thought I had tried that, but maybe it wasn't an EPS. So when you do Graphics(1).ActualPpi and the graphics is an EPS, it will work.

>How about the color space? The InD info panel shows colorspace for Photoshop EPS files. Any idea if THAT is available in the scripting.

Check the library, should be in there.

Peter
Translate
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
Guest
Mar 12, 2008 Mar 12, 2008
Sorry, should have clarified, for a Photoshop EPS file it works. Didn't see the colorspace but I'll keep looking.

While I have you on the hook I'm going to lazy again :o) .ItemLink gives me the filename without the path. I imagine there is something simple for getting the full path name?
Translate
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 ,
Mar 12, 2008 Mar 12, 2008
>While I have you on the hook I'm going to lazy again

Wriggling on that hook, in terrible pain, all I can think of is to say, Check the properties of "Link". I know there's a property that gives you the file path, just can't remember what its name is.

Peter
Translate
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
Guest
Mar 12, 2008 Mar 12, 2008
Thanks Peter, you've helped me manage to get an all too large last minute project complete making one of my larger clients very happy.

Ken
Translate
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