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

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

Engaged ,
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

148

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

Copy link to clipboard

Copied

Bump :- )

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

Copy link to clipboard

Copied

LATEST

Bumpio :- )

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