Img2Zpl is a tool to convert an image to a zpl code so it can be included on an label.
- Support ZPL V1 and V2
- Convert to grayscale
- Support PNG with alpha
- The image can be resized
- Ubuntu / macOS / Windows
- Python3
- Pillow
Run img2zpl --help
for details.
# Convert an image to zpl and output the result in stdout
img2zpl -i original.png
# Convert an image to zpl and save the result in a file
img2zpl -i original.png -o output_zpl.txt
# Resize and then convert to zpl
img2zpl -i original.png -o output_zpl.txt -w 800
# Specify a ZPL version
img2zpl -i original.png --zpl 1