I need to resize the image.So in the below three libraries how to find which one is taking less time to resize the image.
https://github.com/rsms/node-imagemagick
https://github.com/mash/node-imagemagick-native
https://github.com/aheckmann/gm
Sample code
var im = require('imagemagick');
var sourcePath='/tmp/Images/1.jpeg';
var destinationPath='/tmp/ResizedImages/resized.png';
im.resize({
srcPath: sourcePath,
dstPath: destinationPath,
width: 90,
height:100,
},function(err,res){
if(err){
console.log('Error while resizing image '+err);
return;
}
console.log('Image resized successfully...');
});