-
Notifications
You must be signed in to change notification settings - Fork 82
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
Write EPIPE errors for certain png images #69
Comments
Reproduced on an Ubuntu 18.04 system, when ran with strace we can see:
Which shows a partially successful write, |
Turns out the png image is invalid 🤦 No fixes are required for this package.
For anyone interested in what's going on under the hood: the image is piped to the stdin of the child process running
The order of events is:
|
@Juddling That makes perfect sense! Closing this off then, thanks! |
I'm getting the following error for certain png images:
This seems to be happening only on linux machines. I can't replicate this on a Mac because it uses a different binary.
I've also tried identifying the problematic image with ImageMagick, I'm not seeing anything odd on the output:
https://gist.github.com/geraldke/68f2e5f6480fdf18472286b73c01dfc3
Here's a test repo that can reproduce the error. Steps are on the readme, problematic image included.
https://github.com/geraldke/imagemin-pngquant-issue
It's odd that running the binary directly succeeds:
might be related to: #68
The text was updated successfully, but these errors were encountered: