lsongdev / lsongdev/node-escpos
bixolon srp 275iii printer (dot matrix printer) image not printing correctly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 443
- PR merge metrics
- No merged PRs in 30d
Description
return new Promise((resolve, reject) => {
const logo = require("path").join(logoPath, "logo.png");
if (!fs.existsSync(logo)) {
printImage = false;
}
escpos.Image.load(logo, function (image) {
device.open(function (err) {
if (err) {
reject(false);
}
else {
if (isLargeFont) {
printer.size(1, 2);
}
if (printImage) {
printer
.align("ct")
.image(image, "d24")
}
if (cashDrawerKick) {
printer.cashdraw();
printer.cashdraw();
}
if (printText !== "") {
printer
.feed()
.align("LT")
.color(0)
.text(printText)
.feed()
.feed()
.feed()
.feed()
.size(1, 1)
.cut()
}
printer.close();
resolve(true);
}
});//device
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the image-printing path shown with escpos.Image.load and printer.image(image, "d24") on the Bixolon SRP-275III. Inspect how the d24 image mode is handled and compare the printer output with the expected logo rendering; done means the image prints correctly on this dot-matrix model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100