matmair / brother_ql-inventree

Python package for the raster language protocol of the Brother QL series label printers
GNU General Public License v3.0
26 stars 10 forks source link

Printer Support PT-P950NW #31

Open Rincewind34 opened 1 year ago

Rincewind34 commented 1 year ago

I'm having trouble getting a print on this printer to work (and since that is my only printer, I'm having trouble getting anything to work xD). I understand that support for this printer was patched by you?

The software is communicating with the printer, it is discovering it under the USB port, printing my png does make something come out of the printer, but its garbage.

I adjusted the png to the dimensions 283 × 110 as documented for a 12mm label. Here is what I'm trying to print: barcode

And this is what comes out: Screenshot 2023-02-02 at 10 47 15

And this is what the CLI does:

~/D/K/i/s/brother_ql-inventree master 5.2s ❱ brother_ql -p 'usb://0x04f9:0x2086' -b pyusb --model PT-P950NW print --label 12 --rotate 90 --threshold 0.5 ../barcode.png
INFO:brother_ql.backends.helpers:Sending instructions to the printer. Total: 20173 bytes.
INFO:brother_ql.backends.helpers:Printing was successful. Waiting for the next job.
CraigBorrows commented 1 year ago

Im getting the same result using the P900W

asklc commented 8 months ago

Check out https://github.com/boxine/rasterprynt. I used this library for the same printer when I had one for work related stuff.

matmair commented 4 months ago

Hi there! I do not have access to a printer of the PT series so it is difficult for me to debug this. There is this issue upstream, which I have merged in here. Maybe adjusting the compression might help.

vulpes2 commented 3 months ago

Use pt12 instead of 12, and enable compression. print --label pt12 --rotate 90 --compress barcode.png

The label names with the pt prefix are the TZe tape cartridges, which has different geometry compared to the 12mm paper label. The threshold parameter is redundant for a B&W image like the sample you provided. There are currently some geometry bugs that can be worked around by enabling compression.

Update: the geometry issue with uncompressed data is now fixed.

matmair commented 3 months ago

@Rincewind34 @bashyftw can you confirm this works with 'pt*' labels?

Rincewind34 commented 3 months ago

I'll try to confirm this in the coming weeks. I'm currently on summer leave, so I don't have access to my firms items.

matmair commented 2 months ago

@Rincewind34 have you had a chance to check?