filters icon indicating copy to clipboard operation
filters copied to clipboard

Get the bitmap data of a display object with a filter applied

Open velara3 opened this issue 1 year ago • 1 comments

I went through the examples section and I didn't see an example of adding an image to the stage, adding a filter to it and then getting the transparent bitmap data of the image for a PNG. I only see jpeg and webp.

Well, I found the screenshot example so I'll work on that but that doesn't show how to get the image data with filters applied unless it adds it by default.

Related questions:

  1. Is there a forum or chat room or can we ask questions like this here? Is there support on StackOverflow?
  2. Can we create our own filters or modify the existing filters?
  3. Will this run in nodejs?

Also, on this page the link to the filter examples is down: Points to here.

velara3 avatar Feb 20 '24 21:02 velara3

Extract also supports image/png as well. That is, in fact, the default.

You can join the PixiJS Discord. There's a link on the website and it's very active.

You can add your own filters or modify these to suit your needs. It's open source after all!

Lastly, there's a package called @pixi/node (github.com/pixijs/node) that you can use to render filters in Node.js without a browser.

bigtimebuddy avatar Feb 20 '24 22:02 bigtimebuddy