Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean space when i print the image with 50X30mm tag #21

Open
TeschRenan opened this issue Apr 11, 2024 · 5 comments
Open

Clean space when i print the image with 50X30mm tag #21

TeschRenan opened this issue Apr 11, 2024 · 5 comments

Comments

@TeschRenan
Copy link

I'm testing the code and after set to print one tag my tag is clean in the last spacke nex to border from tag, in this case i'm testing this imagem.

image

The space that contains the red rectangle not printing.

My printer is B1 and i use this command to execute python niimprint -m b1 -c usb -a COM19 -d 3 -i .\RenovatioMed-Adesivo.png

@MoshiBin
Copy link

Looks like another instance of #3

@TheZoc
Copy link

TheZoc commented Apr 25, 2024

@TeschRenan That is due to the timer in https://github.com/AndBondStyle/niimprint/blob/main/niimprint/printer.py#L114

The correct way is to poll the printer until it's done printing and send the end_print command to complete it, instead of relying on a timer. I've done that on my fork ( TheZoc/niimprint )

In case you don't want to use a fork and don't want to make complicated changes in here, you can just increase that timer from 0.3 to 1.0 (or so) and it will print everything (though a bit slower)

@TeschRenan
Copy link
Author

Excellent, I'll test this feature today.

Thank you @TheZoc.

@rubeycubey
Copy link

Had this same issue, also a B1. Tried changing it to 1.0, but still not printing bottom quarter of file.

@TheZoc
Copy link

TheZoc commented May 11, 2024

@rubeycubey The timer must be above self.end_page_print()

You could also use the fork that has that fixed already (but it requires python 3.12 for now, until I update it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants