[Error: spawn Unknown system errno 7] on large amount of primitive draw calls
Trying to use this module to draw a large network of 10,000 lines. When the number of DrawLine calls exceeds 2,500 write() returns the following error.
{ [Error: spawn Unknown system errno 7] code: 'Unknown system errno 7', errno: 'Unknown system errno 7', syscall: 'spawn' }
Is this anticipated behavior for this module? Is there any way I can use this module to draw such a large amount of primitives?
That error is coming from node not from gm. What OS/node version are you using?
Getting the same error while attempting to resize images. Appears to be images >100kb or thereabouts. OSX 10.10.1, node 10.33.
Update: okay, dumping out the spawn args I think I see the issue. I'm passing a file buffer to gm which is passing the buffer string to ImageMagick as an arg and past a certain file size the arg is too big. I'm going to just dump the buffer to a tmp file and resize it from there.