Please sign in to comment.
Wait on `close` instead of `exit`.
If the version of Node.js is less than `0.7`, wait on a `"close"` event from the ImageMagick process instead of `"exit"`. As of `0.7`, the `exit` "fires when the child actually exits, `close` fires when all stdio streams have closed." See: https://groups.google.com/forum/#!topic/nodejs/agsTbL-fco0/discussion
- Loading branch information...