Skip to content

Instantly share code, notes, and snippets.

@dileephell
Created February 22, 2013 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dileephell/5013060 to your computer and use it in GitHub Desktop.
Save dileephell/5013060 to your computer and use it in GitHub Desktop.
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