javascriptimagenode.jsimage-processingimage-manipulation

Which library should I use for server-side image manipulation on Node.JS?


I found a quite large list of available libraries on Node.JS wiki but I'm not sure which of those are more mature and provide better performance. Basically I want to do the following:

  1. load some images to a server from external sources
  2. put them onto one big canvas
  3. crop and mask them a bit
  4. apply a filter or two
  5. Resize the final image and give a link to it

Big plus if the node package works on both Linux and Windows.


Solution

  • Answering my own question

    I spent two days digging through Node.js graphics libraries.

    node-canvas

    gm

    node-imagemagick

    Node-Vips

    sharp

    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.