You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great plugin by the way.
Facing this following issue while converting images to webp (node:4267) UnhandledPromiseRejectionWarning: Error: stdout read ENOTCONN at tryReadStart (net.js:558:20) at Socket._read (net.js:569:5) at Socket.Readable.read (_stream_readable.js:491:10) at Socket.read (net.js:609:39) at new Socket (net.js:363:12) at Object.Socket (net.js:254:41) at createSocket (internal/child_process.js:311:14) at ChildProcess.spawn (internal/child_process.js:424:23) at Object.spawn (child_process.js:540:9) at module.exports (/path/node_modules/execa/index.js:139:26) (node:4267) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2085) (node:4267) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:20240) UnhandledPromiseRejectionWarning: Error: Command failed with ENOTCONN: /scripts/node_modules/mozjpeg/vendor/cjpeg
read ENOTCONN
at tryReadStart (net.js:574:20)
at Socket._read (net.js:585:5)
at Socket.Readable.read (_stream_readable.js:475:10)
at Socket.read (net.js:625:39)
at new Socket (net.js:377:12)
at Object.Socket (net.js:269:41)
at createSocket (internal/child_process.js:313:14)
at ChildProcess.spawn (internal/child_process.js:436:23)
at Object.spawn (child_process.js:553:9)
at execa (scripts/node_modules/imagemin-mozjpeg/node_modules/execa/index.js:80:26)
Possible cause: too many files in a folder (~2500) and imagemin failing to tackle all of them in async manner. If imagemin is set to iterate files one by one, everything is processed without errors.
I fix this bug in imagemin package with this Pull Request
I hope imagemin merges it with their source code
otherwise you can useimageminimizepackage it's like imagemin but large numbers of files are working on it and more optimized than imagemin
PS: imageminimize get the same options as imagemin
Great plugin by the way.
Facing this following issue while converting images to webp
(node:4267) UnhandledPromiseRejectionWarning: Error: stdout read ENOTCONN at tryReadStart (net.js:558:20) at Socket._read (net.js:569:5) at Socket.Readable.read (_stream_readable.js:491:10) at Socket.read (net.js:609:39) at new Socket (net.js:363:12) at Object.Socket (net.js:254:41) at createSocket (internal/child_process.js:311:14) at ChildProcess.spawn (internal/child_process.js:424:23) at Object.spawn (child_process.js:540:9) at module.exports (/path/node_modules/execa/index.js:139:26) (node:4267) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2085) (node:4267) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm version: 6.14.7
packages installed: imagemin and imagemin-webp
Code
`const imagemin = require('imagemin');
const imageminWebp = require('imagemin-webp');
var folder = 'path';
imagemin([folder], {
destination: folder,
plugins: [imageminWebp({ quality: 80 })]
}).then(() => {
console.log('Done!');
});`
The text was updated successfully, but these errors were encountered: