Closed oscarmcm closed 9 years ago
+1. It happens with some images, I can't recognize the reason
It's seem a bug with only jpeg images
Now I'm using imagemin-mozjpeg
plugin instead, it works without errors
I just edited the markup of @oscarmcm's comment. https://github.com/imagemin/imagemin-jpegtran/issues/8#issue-103310470
Correct markdown syntax highlighting helps the maintainers read your code.
@oscarmcm @mrnix Can you create a small repository that can reproduce the problem?
https://github.com/sindresorhus/gulp-imagemin/issues/142#issue-110802779
The console error output states: events.js:85 throw er; //Unhandled 'error' event
Error: Error: write EOF at ChildProcess.
(FILEPATH\imagemin-jpegtran\index.js:60:11) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Socket. (child_process.js:1183:11) at Socket.emit (events.js:107:17) at Pipe.close (net.js:485:12)
:+1: thanks @shinnn
I have a similar issue to the one above. I opened the issue in imagemin here Many thanks.
Windows Vista SP2 (I know) Node 4.3.0 NPM 2.14.12 imagemin 2.4.0 imagemin-jpegtran ^4.3.2
imagemin 2.4.0
Really ancient version. Upgrade to the latest imagemin and try again.
Thanks, that's solved it. No idea why it was such an old version.
@dmullings81 No problem.
Note:
This is my gulp task:
And this is my stack trace: