Skip to main content
BEGINNER_X
Legend
August 24, 2013
Question

Find dpi Photoshop eps

  • August 24, 2013
  • 2 replies
  • 3677 views

Hi All,

Is it possible to find dpi for the photoshop eps?

The below code is working fine for the extension of ".tif" only.

var myDoc = app.activeDocument;

var myGraphics = app.activeDocument.allGraphics;

 

for (var i = 0; i < myGraphics.length; i++) {

  if (myGraphics.effectivePpi[0] < 300 || myGraphics.effectivePpi[1] < 300) {

      var myPPI = myGraphics.effectivePpi[0] + " dpi\r";

      var myLowResImage = myGraphics.itemLink.name;

      alert("myLowResImage: " + myLowResImage + "\r" + "myPPI: " + myPPI);

   };

}; 

Please anyone give solution for my request.

Regards

Beginner_X

This topic has been closed for replies.

2 replies

Harbs.
Legend
September 15, 2013

This will not get the exact resolution, but you can use preflight to find out if an eps is higher than a predefined resolution.

Community Expert
August 24, 2013

@Beginner_X – the InDesign preflight feature is able to catch effective PPI from eps files.
I have no code for you, but can remember that thiese issues were already discussed in this forum.

On the other hand you could use bridgetalk scripting to open an eps in PhotoShop (as long it is an PhotoShop eps) from an InDesign ExtendScript to read out the values and calculate effective ppi from its width and height in InDesign.

There should be a couple of examples discussed here around…

Uwe

Trevor:
Legend
August 25, 2013

I thought eps was a vector format that by definition doesn't have resolution.

Either way for and example of using bridgetalk to get resolution from photoshop see

#9 http://forums.adobe.com/message/4542274#4542274

Trevor:
Legend
August 25, 2013

See #18 http://forums.adobe.com/message/3879802#3879802

Uwes over there in #19 (and other places)