-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.stream swallows errors when imagemagick not found #548
Comments
it looks like on streaming, the
gm(ReadStream)
.resize(w, h)
.stream('png', function(err, stdout){
})
.on('error', function(){ ... });
gm(readStream)
.resize(w, h)
.proc('png'); // this is a proc, and i get all the errors and stdout and stderr |
Would love to see this fixed. This comes up for users of the badges CLI as well as developers – see badges/shields#883. These two seem like the workable options:
If we did this, we could also add an
This makes sense too. Would it make sense to offer both? @bblack Are you still using this? If I put a patch together would you like to give it a look? |
Yes!
That would be great, although I make no guarantee about when. |
Hrm, just noticed this was previously reported at #256. |
Exposing the proc object synchronously is difficult, because the preprocessors are first invoked in series. Though it's easy enough to expose it in the callback, as suggested in #256. Would you like to close this and continue there? |
still digging into this, but it seems that on e.g.
no error is reported. it seems that the callback
cb
inlib/command.js
is being called 3 times, and the first time is not passed the error. will add more specifics as i have them.The text was updated successfully, but these errors were encountered: