Label Design via Typst and local Brother-QL printing #6308
42CrMo4
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to show you my approach to label printing. As I do not have a network printer, I had to do it on the LAB PC anyway. So I took a (very) different approach and chose to render on the PC using the markup language Typst. It has a very fast rendering engine and is mostly compared to LaTeX, but is very light and has an excellent online editor. This was the reason for me to go this route to make the label design visually easier for me.
https://github.com/42CrMo4/InvLabel/
The script loads the data from Inventree using the Python bindings and stores it in a .csv file. The Typst file contains the design template. Typst then reads the .csv file and outputs a .png file of the label. This is then printed using the brother_ql tool.
Here are some sample labels I created for a 29mm continuous roll.
The design can be modified easily in the online editor http://typst.app and only the csv and typ file is needed.
The implementation is more of a proof of concept (POC) and should not be used for serious applications. Also for now it suits my needs and has a very limited way for easy modification. It is intended to provide a different way of thinking about designing and printing labels.
Feel free to use it if you find it useful.
Beta Was this translation helpful? Give feedback.
All reactions