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

GenericFailure on creating a huge canvas #897

Open
lmachens opened this issue Sep 15, 2024 · 1 comment
Open

GenericFailure on creating a huge canvas #897

lmachens opened this issue Sep 15, 2024 · 1 comment

Comments

@lmachens
Copy link

I like to create a canvas with a size of 25600x25600 .
createCanvas(25600, 25600)

This is the error message:

error: Create skia surface failed
 code: "GenericFailure"

      at createCanvas (/home/devleon/the-hidden-gaming-lair/services/data/node_modules/@napi-rs/canvas/index.js:67:62)
      at /home/devleon/the-hidden-gaming-lair/services/data/src/lib/image.ts:239:16

@napi-rs/canvas version: 0.1.55

Is it possible to increase the max size or does it depend on the memory of the host?

@lmachens
Copy link
Author

Looks like it's a limitation related to the maximum canvas size in skia:
mono/SkiaSharp#896 (comment)

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