Description of the bug
I'm trying to print this example
printer.align('ct')
.image(image, 's8')
.then(() => {
printer.cut()
.close();
});
my implementation
const imagePath = path.join(__dirname, '/assets/apple-icon.png');
escpos.Image.load(imagePath, function (image) {
device.open(function () {
printer
.align('ct')
.image(image, 's8')
.then(() => {
printer.cut().close();
});
});
});
i get
❌ error:
Unhandled Rejection: TypeError: Only escpos.Image supported at: [object Promise]
Steps To Reproduce
empty
Additional Information
No response