papandreou / node-pngquant

The pngquant utility as a readable/writable stream
BSD 3-Clause "New" or "Revised" License
82 stars 23 forks source link

Unhandled stream error in pipe #15

Closed zgj233 closed 5 years ago

zgj233 commented 6 years ago

Debugger attached. internal/streams/legacy.js:59 throw er; // Unhandled stream error in pipe. ^

Error: Saw pngquant output on stderr: ND<~C{!"D?B<C{;r>m1jSo7(2;U}H7!#

papandreou commented 6 years ago

Hmm, are you able to provide the code/image that reproduces this? I wonder if it's just a matter of handling stderr.once('error', ...) here: https://github.com/papandreou/node-pngquant/blob/8a6cec532def96f5f54d8005b4b64e62362705cb/lib/PngQuant.js#L90

papandreou commented 5 years ago

Closing for inactivity, please reopen with reproduction steps if it's still an issue.