Open labsforge opened 3 weeks ago
I don't see any way to write file in chunks in browser: https://developer.mozilla.org/en-US/docs/Web/API/File so I'm not sure how adding chunked write api would help in this case. Reducing memory usage could potentially reduce this problem, but it doesn't guarantee that it will be fixed.
Other things that you can try: don't save thumbnail and composite image if you don't need them, they're not needed if you just plan on opening the file in Photoshop later. You can also try passing { compress: true }
in writePsd options, it's still experimental feature though.
Hi, I've pin-pointed this problem to when I call writePsd to get an ArrayBuffer or Buffer so I can finally write it to disk:
Everything works fine, but in this case the final file should end up with more than 1Gb. I there a way to refactor the construction of the ArrayBuffer to be done in chunks?
Kind regards!