When using Node. js, a special library module called libuv is used to perform async operations. This library is also used, together with the back logic of Node, to manage a special thread pool called the libuv thread pool.
Not that it's not possible, you can read bytes and manipulate them, so it's possible, but it would not be the best fit. Node is single threaded and image manipulation is usually CPU-bound and highly parallelizable so multithreaded implementations are likely to be faster.
List of Popular NodeJS libraries. Express, one of the best Node. js libraries, has earned the reputation as the library that has the flexible, minimalist web framework for NodeJS. Install Express using the npm install command.
Answering my own question
I spent two days digging through Node.js graphics libraries.
node-canvas
<canvas>
API. It's a huge plus for a library.gm
node-imagemagick
montage
which does exactly what I need.Node-Vips
I also looked at other libraries from the list but most of them are either very immature or do not suit my use case. I would really like to try migrating to either Node-Canvas or Node-Vips when Node-Waf gets ported to Windows but until then I'll stick to node-imagemagick.
I'd strongly advise you to check gm with GraphicsMagick. Stable, feature rich, clean API, great docs, and fast.
And it works both on Windows and Linux / MacOS / BSD / ...
Her is the link to canvas implementation based on GDI+
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With