update README.md files

This commit is contained in:
Simon Waldherr
2018-10-19 19:59:56 +02:00
parent 07c1abe3d3
commit ad1a2c79cf
2 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
# ZPLGFA Golang Package
[![GoDoc](https://godoc.org/github.com/SimonWaldherr/zplgfa?status.svg)](https://godoc.org/github.com/SimonWaldherr/zplgfa)
[![Go Report Card](https://goreportcard.com/badge/github.com/SimonWaldherr/zplgfa)](https://goreportcard.com/report/github.com/SimonWaldherr/zplgfa)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/SimonWaldherr/zplgfa/master/LICENSE)
The ZPLGFA Golang package implements some functions to convert PNG, JPEG and GIF files to ZPL compatible ^GF-elements ([Graphic Fields](https://www.zebra.com/us/en/support-downloads/knowledge-articles/gf-graphic-field-zpl-command.html)).
## install

View File

@@ -7,20 +7,20 @@ So if you need to print labels on a [ZPL](https://en.wikipedia.org/wiki/Zebra_(p
## install
1. [install Golang](https://golang.org/doc/install)
1. `go install simonwaldherr.de/go/zplgfa/cmd/zplgfa`
1. `go get simonwaldherr.de/go/zplgfa/cmd/zplgfa`
## usage
So if your image file is `label.png` and the IP of your printer is `192.168.178.42` you can print via this command:
```sh
./zplgfa -file label.png | nc 192.168.178.42 9100
zplgfa -file label.png | nc 192.168.178.42 9100
```
You can also use some effects, e.g. blur:
```sh
./zplgfa -file label.png -edit blur | nc 192.168.178.42 9100
zplgfa -file label.png -edit blur | nc 192.168.178.42 9100
```
The ZPLGFA is actually just a demo application for the ZPLGFA package,