Skip navigation
Currently Being Moderated

grab image from photoshop using sdk

Apr 15, 2012 10:55 AM

the following sampe in the sdk shows how the client requests

a thumbnail from photoshop.



var idNS = stringIDToTypeID("sendDocumentThumbnailToNetworkClient")

var desc1 = new ActionDescriptor();

desc1.putInteger( stringIDToTypeID("width"  ), 640;

desc1.putInteger( stringIDToTypeID("height" ), 400);

desc1.putInteger( stringIDToTypeID("format" ), 1);

executeAction( idNS, desc1, DialogModes.NO );


The command above sends an image to the client, which has no metadata like exif.



BUT how can the client request a full  IMAGE (Picture with metadata and not downsized) not a thumbnail from photoshop

sending it to the client ??? Is there any message like above ?


where are the messages listed like "sendDocumentThumbnailToNetworkClient"

and other, I can't find them anywhere ??


best regards


  • Currently Being Moderated
    Apr 16, 2012 2:11 PM   in reply to jericho4712

    Ask Photoshop what the size of the image is and request it in the width and height.

    Make a second request for the xmp data via JavaScript. activeDocument.xmpMetadata.rawData

    The list of commands can be found on this page documentation/pages/index.html

    Consult the JavaScript documentation for all the things you can do with that API. The documents are part of you Photoshop install in the Scripting folder.

    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 8:34 AM   in reply to jericho4712

    You can't get the full image file, or metadata that way.

    You can only get a preview/thumbnail - although you can request a thumbnail at a fairly large size.


    And the network messages are documented in the SDK along side the network example code.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points