MultiMote / niimblue

🖨 NIIMBOT custom web client/app. Design and print labels with NIIMBOT printers directly from your PC or mobile web browser!
https://niim.mmote.ru
MIT License
71 stars 11 forks source link

Question about B1 support ZPL protocol #11

Closed tywtyw2002 closed 2 months ago

tywtyw2002 commented 2 months ago

Do you know the B1 printer support the ZPL protocal?

If not is possible to create a feature to translate ZPL to niimbot protocol?

MultiMote commented 2 months ago

B1 (and other portable Niimbot printers, I guess) can only print bitmaps.

I think the only way to print a ZPL image is to convert it to a bitmap then print it. Command-line projects like niimprint more fits to this. I didn't find any js libraries to convert ZPL to image.

tywtyw2002 commented 2 months ago

I saw some online ZPL viewer use labelary public api to convert ZPL to image.

https://labelary.com/service.html#limits

MultiMote commented 2 months ago

Added to Roadmap.

The import will be done by converting the ZPL to PNG and adding it to the canvas if it is acceptable.

MultiMote commented 2 months ago

Done, added basic import option, you can check it now.

image

Tested with test.zpl

tywtyw2002 commented 1 month ago

Thanks, work greats!

I was busy in recently fews days, sorry for late reply.