Open tention opened 3 years ago
Describe the bug Trying to generate the thumbnail using a buffer, so what i did was:
Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16) done! ✨ Done in 12.80s.
To Reproduce Code snippet or repository link that reproduces the error:
const ffmpeg = require('ffmpeg-static'); const { faststart } = require('moov-faststart'); const genThumbnail = require('simple-thumbnail'); const { Readable } = require('stream'); try { genThumbnail(Readable.from(faststart(file.buffer)), '/tmp/test.jpg', '150x?', { path: ffmpeg.path }) .then(() => console.log('done!')) .catch(err => console.error(err)); } catch (e) { console.log(e); }
Environment (please complete the following information):
Additional context Add any other context about the problem here.
Describe the bug Trying to generate the thumbnail using a buffer, so what i did was:
To Reproduce Code snippet or repository link that reproduces the error:
Environment (please complete the following information):
Additional context Add any other context about the problem here.