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

Is direct conversion of PSD layers to buffer possible? #215

Open
aryannsa opened this issue Jan 9, 2025 · 1 comment
Open

Is direct conversion of PSD layers to buffer possible? #215

aryannsa opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@aryannsa
Copy link

aryannsa commented Jan 9, 2025

I'm using a Photoshop UXP plugin and need a way to efficiently convert layer data directly to ag-psd compliant data type. Is there any which i can use from the ag-psd for that?

@Agamnentzar
Copy link
Owner

You want to save PSD file using ag-psd? You can set imageData property for the layers instead of canvas it's simple data structure that you can create from buffer.

interface PixelData {
  data: Uint8Array;
  width: number;
  height: number;
}

@Agamnentzar Agamnentzar self-assigned this Jan 10, 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