KnicKnic / WASM-ImageMagick

Webassembly compilation of https://github.com/ImageMagick/ImageMagick & samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node Support

TheColorRed opened this issue · comments

It would be nice if it was possible to run this in node, but currently it isn't possible as it uses Web Workers which are not a thing in node.

I think the node equivelent would be a fork

you can make it run against node, it is even in the tests.
see

"test-node-prepare": "cp tests/rotate/node_header.js tests/rotate/node.js && cat ImageMagick/utilities/magick.js >> tests/rotate/node.js && cp magick.wasm tests/rotate",
"test-node": "npm run test-node-prepare && cd tests/rotate && node node",

Is there any way to run this on node?