Replies: 1 comment 4 replies
-
Pixi has a built-in utility to do this called getCanvasBoundingBox. It is used to trim Text. https://github.com/pixijs/pixijs/blob/dev/src/utils/canvas/getCanvasBoundingBox.ts |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to crop the transparent pixels out of an image to contain only it's contents and I started to do it manually and I figure there has to be a better way.
Here is what I have so far:
I've updated this answer a few times. The last update might work.
Beta Was this translation helpful? Give feedback.
All reactions