How to get layer thumbnail as array/jpg/etc data?

Contributor ,
May 25, 2022 May 25, 2022

Copy link to clipboard

Copied

Hey
Does any1 know how to capture/get/pixel data of the little thumbnail image that we see in layers next to the eye/name of the layer? I have this example, but this code is for network fetching
 

 

var idNS = stringIDToTypeID( "sendDocumentThumbnailToNetworkClient" );
var desc1 = new ActionDescriptor();
desc1.putInteger( stringIDToTypeID( "width" ), 600 );
desc1.putInteger( stringIDToTypeID( "height" ), 400 );
desc1.putInteger( stringIDToTypeID( "format" ), 1 );
executeAction( idNS, desc1, DialogModes.NO );

 

 
I'm wondering if any1 has something similar to just grab the picture as is and return an array of chars/ints/etc/jpg etc?

I want to capture 4000 pictures in a document so will try to port it to c++ afterward.

So c++ example is welcome too.

Regards Dariusz

TOPICS
Actions and scripting , macOS , SDK , Windows

Views

67

Likes

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
Contributor ,
May 28, 2022 May 28, 2022

Copy link to clipboard

Copied

Bump :- )

Likes

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
Contributor ,
Jun 02, 2022 Jun 02, 2022

Copy link to clipboard

Copied

LATEST

Bumpio :- )

Likes

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