Skip to content

update for PT-P950NW#109

Open
michaeleekk wants to merge 1 commit intopklaus:masterfrom
michaeleekk:pt-p950nw
Open

update for PT-P950NW#109
michaeleekk wants to merge 1 commit intopklaus:masterfrom
michaeleekk:pt-p950nw

Conversation

@michaeleekk
Copy link
Copy Markdown

Thank you very much for all the efforts on label printers ! I just made it worked with PT-P950NW and 18mm labels and so I'm trying to contribute back the setting that I used.

Originally I failed without the compression flag. The following is the results,

IMG_9797

# works (left)
brother_ql_create -c -m PT-P950NW --label-size 18 ~/Desktop/label_tests/mspaint_test_rotated.png > mspaint_gen3.bin
brother_ql --debug -m PT-P950NW -p usb://0x04f9:0x2086/000M7Z552861 send mspaint_gen3.bin

# works (left)
brother_ql --debug -m PT-P950NW -p usb://0x04f9:0x2086/000M7Z552861 print -c -l 18 ~/Desktop/label_tests/mspaint_test_rotated.png

# doesn't work (right)
brother_ql --debug -m PT-P950NW -p usb://0x04f9:0x2086/000M7Z552861 print -l 18 ~/Desktop/label_tests/mspaint_test_rotated.png

This is the original image,

mspaint_test_rotated

There are a few points that I would like to mention when I was playing with the commands,

  • The number_of_copies update in the opcode list is because when I tried to analyze the binary generated by the printing utility, it found an unknown command. Maybe it's a new command that is only on PT-P900 series ?
  • Originally I had the image in landscape, width of the image is longer than height, as I thought that's the default way, or at least the auto rotate will help me do the tricks. In the end, I just rotated the image manually.
  • As PT-P950NW changed to 360dpi x 360dpi, I was confused by those converting to 300dpi wording in the readme and in the code, but I realized that the code is just trying to resize the image to the target width pixel.

Thanks again for the nice code base :)

@resba
Copy link
Copy Markdown

resba commented Feb 4, 2023

I ended up getting this to work by making a similar model using the pt24 as a base but changing the variables to the ones you used for 18mm tape to upscale to 360dpi. +1 @michaeleekk thank you for this!

https://github.com/resba/brother_ql/blob/master/brother_ql/labels.py#L108

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

Successfully merging this pull request may close these issues.

3 participants