Skip to content

Unable to extract raw layer pixel data #110

Description

@tim35050

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions