Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail data for Artboards #222

Open
vishesh-rocketium opened this issue Feb 4, 2025 · 1 comment
Open

Thumbnail data for Artboards #222

vishesh-rocketium opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@vishesh-rocketium
Copy link

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 .

@Agamnentzar
Copy link
Owner

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 Agamnentzar self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants