ag-psd icon indicating copy to clipboard operation
ag-psd copied to clipboard

Thumbnail data for Artboards

Open vishesh-rocketium opened this issue 11 months ago • 1 comments

Hey I wanted to generate thumbnail for each artboard in psd . But currently there is no pixel data available for each artboard , as it is for whole psd , or image layers . I was wondering If there was some way to generate that .

Initially I thought something like using a canvas to recreate artboard , as i have data for all layers of artboard and then convert it to png , but a fully functional canvas is not supported in UXP environment .

I was hoping if there's any idea on how we can achieve generating a thumbnail for each Artboard .

vishesh-rocketium avatar Feb 04 '25 13:02 vishesh-rocketium

You can use composite image from psd.canvas it contains combined image of all of the artboards (see: https://github.com/Agamnentzar/ag-psd/tree/master/test/read/artboards ), so you can read artboard regions and cut the bitmap for each artboard from the composite image.

Agamnentzar avatar Feb 04 '25 15:02 Agamnentzar