r/unRAID • u/Dyingmisery • 1h ago
Cups auto crop label stack
github.comMy wife sells on Vinted, so I turned our non-AirPrint label printer into a one-tap AirPrint "Vinted Labels" printer
My wife isn't techie, but she sells a lot on Vinted. Vinted sends each shipping label as a PDF on a full A4 page, and our SATO CG412DT thermal printer doesn't do AirPrint. She wanted to print straight from her iPhone onto 4x6 labels with no cropping or computer.
So I built cups-label-crop, a Docker container for Unraid. It runs CUPS with AirPrint and adds a printer called Vinted Labels. When you print to it, it finds the label on the A4 page, crops and rotates it, and sends a sharp 4x6 label to the printer. The barcodes stay as vectors, so they scan perfectly. It should work with any 4x6 printer CUPS supports, including Zebra, Rollo, Munbyn, DYMO and SATO.
Now she taps Share, then Print, then Vinted Labels, and that's it.
Credit to dodopus, whose vinted-label-4x6 tool inspired the cropping method. It's open source under GPL-3.0, and it's coming to Community Apps.
I'd love to hear if it works with your printer!