Skip to content

RemiG26/img2zpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Img2Zpl

Description

Img2Zpl is a tool to convert an image to a zpl code so it can be included on an label.

Features

  • Support ZPL V1 and V2
  • Convert to grayscale
  • Support PNG with alpha
  • The image can be resized

Requirements

  • Ubuntu / macOS / Windows
  • Python3
  • Pillow

Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published