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

Unable to extract raw layer pixel data #110

Open
tim35050 opened this issue Feb 11, 2025 · 0 comments
Open

Unable to extract raw layer pixel data #110

tim35050 opened this issue Feb 11, 2025 · 0 comments

Comments

@tim35050
Copy link

Thank you for building this excellent library!

For my use case, I'm trying to get layer data WITHOUT any filter or effect applied to it. But it looks like filters are applied by default. I tried the following (and all other combinations), but Gaussian Blur and Curves filters on the layer are applied by default:

// Extract the pixel data of a layer, without any effects
layerPixelData = await layer.composite(false);

I also tried reading directly from imageData, but that again seems to have the filters baked into the layer data. It would be nice to be able to see the layer data without filters, and to have filters available elsewhere that I can apply/adjust myself.

Best,
Tim

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

1 participant