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

Sprites: out of memory #12

Open
ch-sander opened this issue May 25, 2022 · 3 comments
Open

Sprites: out of memory #12

ch-sander opened this issue May 25, 2022 · 3 comments

Comments

@ch-sander
Copy link

I always run into troubles with the generation of sprites:

(node:3724) UnhandledPromiseRejectionWarning: Error: vips_image_write_to_memory:
 out of memory --- size == 16MB

Textures are generated, but then, only the first spritesheet will be created...

@cpietsch
Copy link
Owner

  • how many images do you have ?
  • what settings did you use / default ?
  • are you on windows ?

@ch-sander
Copy link
Author

ch-sander commented May 25, 2022

  • how many images do you have ?

currently only 623 (will be c. 2000 soon)

* what settings did you use / default ?

yes: node bin/textures "C:\Users\Sander\Pictures\vismag\in\*.jpg" --output "C:\Users\Sander\Documents\GitHub\raramagnetica\vikus\vismag\data". I also tried to achieve something with the --spriteSize flag, but no success.

* are you on [windows ](https://github.com/libvips/libvips/issues/82) ?

Yes, Win10

@cpietsch
Copy link
Owner

for now we managed to get it working by using the linux filesystem on windows.

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

2 participants