lsongdev / lsongdev/node-escpos

bixolon srp 275iii printer (dot matrix printer) image not printing correctly

Open
#338 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.