JavaScript Image Manipulator

5

Is there any image manipulator similar to canvas or jimp to node.js ?

Explanation of why you do not want to use either: So I was trying to use canvas as a test, and it takes a long time to compile the file, and jimp did not write the file at the same time as the composition of it. And it took too long.

OBS: That contains how to put two images and return one.

    
asked by anonymous 03.09.2017 / 21:45

1 answer

2

The gm module is a wrapper for GraphicsMagick and ImageMagick for node.js , the great advantage is that it is very fast and allows you to do everything ImageMagick / GraphicsMagick has to offer. The biggest disadvantage is that you need to install the binaries of the two separately.

If you choose to use it, the function below should accomplish what you want:

gm("img.png").append("another.jpg", true).write('output.jpg', function(error){})
  

link

     

link

    
03.12.2018 / 19:50