`capture()` broken from 2.1.0
ch3rn1k opened this issue · comments
Alex Chernikov commented
After updating to >= 2.1.0 .capture()
method now makes black screen
Example code:
import { Hardware } from 'keysender';
import sharp from 'sharp';
const desktop = new Hardware();
const screenCapture = desktop.workwindow.capture();
sharp(screenCapture.data, {
raw: {
width: screenCapture.width,
height: screenCapture.height,
channels: 4
}
}).toFile('123.png');
Alex Chernikov commented
Andrii commented
should be fixed in 2.1.2