Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
easyimg.resize({src:'./upload/work/abcd.png', dst:'./upload/work/abcd-small.png', width:50, height:50}, function(err, stdout, stderr) {
if (err) throw err;
console.log('Resized to 50x50');
});
shows error me like
Error: Command failed: /bin/sh: 1: convert: not found
at ChildProcess.exithandler (child_process.js:540:15)
at ChildProcess.EventEmitter.emit (events.js:99:17)
at maybeClose (child_process.js:638:16)
at Socket.ChildProcess.spawn.stdin (child_process.js:815:11)
at Socket.EventEmitter.emit (events.js:96:17)
at Socket._destroy.destroyed (net.js:358:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
22 Feb 17:41:24 - [nodemon] app crashed - waiting for file changes before starting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.