Closed joshuahamsa closed 1 year ago
I figured it out.
Node Canvas (Cairo) has had maximum dimensions (height or width) capped at 32,767 px since version 1.10.
When the generator creates the sprite sheets, it essentially puts each of the 1080 px images side by side, which exceeds this limit after the 30th frame.
Closing this issue, with the hope that an alternative to Canvas might be out there.
https://github.com/Automattic/node-canvas/issues/1374#issuecomment-467918480
Hi @joshuahamsa thank you for writing in and trying out the tool! Have you tried batching? That should help with the canvas issue.
I came across the batching option way too late tbh! Wish I’d found it earlier. הנני שלחני Here I am. Send me.
On Sun, Sep 3, 2023 at 2:41 PM James Uejio (Jalagar) < @.***> wrote:
Hi @joshuahamsa https://github.com/joshuahamsa thank you for writing in and trying out the tool! Have you tried batching? That should help with the canvas issue.
— Reply to this email directly, view it on GitHub https://github.com/jalagar/animated-art-engine/issues/189#issuecomment-1704411885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ2FQDPCCRPHSIYPBFTUAUTXYT2OXANCNFSM6AAAAAA4B6XB5Y . You are receiving this because you were mentioned.Message ID: @.***>
haha sorry man! hope at least this comment thread helps some folks and appreciate you!
I've been trying to generate some 1080x1080 gifs and have been running into issues on Step 2. Initially I thought this might be because the number of frames in some of the gifs was different than the numberOfFrames (150).
Some of the gifs have over 300 frames, for example, while one has a few as 5. I removed all of the gifs that had more or less than 150 frames, but I'm still running into the same error.
I added a couple lines of debug code to print the canvas and image sizes to console at the various steps, and have found what might be the issue, but I'm not sure how to resolve it. Adding a couple lines before and after the errors for context:
I'm probably just doing this wrong somehow, but would be grateful any input or assistance you can provide!