Open SeminAl opened 8 years ago
Any solution for this? I need the same
const chunks = []
renderStream.on('data', function(chunk) {
chunks.push(chunk);
})
renderStream.on('end', () => {
sharp(Buffer.concat(chunks))
.resize(600, 600)
convert to format you need
})
Hi guys,
Any tips how I can resize stream produced by node-webshot with sharp (http://sharp.dimens.io/en/stable/api/)?
Here is example how screenshot is rendered: