All Projects → SimonWaldherr → zplgfa

SimonWaldherr / zplgfa

Licence: MIT license
#Golang package and cli tool for converting to #ZPL (from PNG, JPEG and GIF) for @ZebraTechnology-printers

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to zplgfa

ZPL-Printer-Emulator-SDK
Convert, Preview & Render raw ZPL commands to PNG, JPG & PDF from .NET
Stars: ✭ 29 (+0%)
Mutual labels:  zpl, zebra
zpl
This library is a php wrapper for the ZPL Programming Language.
Stars: ✭ 20 (-31.03%)
Mutual labels:  zpl, zpl-programming-language
Form-Labeller
Use this tool to label forms, bounding boxes, and assigning types to annotations
Stars: ✭ 17 (-41.38%)
Mutual labels:  label, labeling-tool
label-actions
🤖 GitHub Action that performs certain tasks when issues, pull requests or discussions are labeled or unlabeled
Stars: ✭ 60 (+106.9%)
Mutual labels:  label
algorithmshacktoberfest2021
Some algorithms, than i need some help to complete !
Stars: ✭ 25 (-13.79%)
Mutual labels:  hacktoberfest-accepted
-HactoberFest2021-For All Beginers-
Raise Genuine PRs, Your PRs will be accepted, Star This Repo, You aren't allowed to Update README.md
Stars: ✭ 33 (+13.79%)
Mutual labels:  hacktoberfest-accepted
Hacktoberfest-imagine-your-contribution
Contribute anything for your T-shirt, must be relevant that can add some value to this repo.
Stars: ✭ 16 (-44.83%)
Mutual labels:  hacktoberfest-accepted
HacktoberFest-21
A mentorship initiative to help beginners kickstarting their open-source journey by completing Hacktoberfest'21 challenge | Curated list of beginner-friendly issues for Hacktoberfest 2021 | Raise PR to add your issues
Stars: ✭ 27 (-6.9%)
Mutual labels:  hacktoberfest-accepted
Hacktoberfest2021-DSA
If You know the implementation of any DSA related topic/problem then you can contribute it in this repo. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star this Repo. You aren't allowed to Update README.md. Welcoming developers, content writers, and programming enthusiasts.
Stars: ✭ 232 (+700%)
Mutual labels:  hacktoberfest-accepted
Leetcode-scripts
Repo for creating awesome leetcode solution scripts to make my panda smarter
Stars: ✭ 16 (-44.83%)
Mutual labels:  hacktoberfest-accepted
Resources
No description or website provided.
Stars: ✭ 25 (-13.79%)
Mutual labels:  hacktoberfest-accepted
Hacktoberfest-2021
An Open Source repository to Teach people How to contribute to open sources.
Stars: ✭ 98 (+237.93%)
Mutual labels:  hacktoberfest-accepted
Vibranium
Web template for and by DSC chapters worldwide because we are a Wakanda of student developers and future technology leaders from all across the world. 🎉
Stars: ✭ 89 (+206.9%)
Mutual labels:  hacktoberfest-accepted
rpatchur
A customizable, cross-platform patcher for Ragnarok Online clients.
Stars: ✭ 33 (+13.79%)
Mutual labels:  grf
HealthBliss-Hacktoberfest2021
HealthBliss is a static responsive website which provides its users with good health reads on how to overcome anxiety, depression and bipolar disorders. Check the readme to know more.
Stars: ✭ 22 (-24.14%)
Mutual labels:  hacktoberfest-accepted
dependent-issues
📦 A GitHub Action for marking issues as dependent on another
Stars: ✭ 83 (+186.21%)
Mutual labels:  label
Angular
A repositoy to learn and boost your Angular skills. It contains cheatsheet, code, articlues and all learning resources you need.
Stars: ✭ 49 (+68.97%)
Mutual labels:  hacktoberfest-accepted
TheHungryRecipesHTML
A food recipes website with clean user interface
Stars: ✭ 20 (-31.03%)
Mutual labels:  hacktoberfest-accepted
hacktoberfest2020
This is a hacktoberfest repo with learning propose to make pull request(PR) and get contribute on opensource project
Stars: ✭ 13 (-55.17%)
Mutual labels:  hacktoberfest-accepted
FOTextLayout
实现文字横竖向切换,实现各种文字的排版,可以某种程度上替代UILabel。
Stars: ✭ 36 (+24.14%)
Mutual labels:  label

ZPLGFA Golang Package

convert pictures to ZPL compatible ^GF-elements

GoDoc Build Status Coverage Status Go Report Card codebeat badge BCH compliance FOSSA Status license

The ZPLGFA Golang package implements some functions to convert PNG, JPEG and GIF encoded graphic files to ZPL compatible ^GF-elements (Graphic Fields).

If you need a ready to use application and don't want to hassle around with source code, take a look at the ZPLGFA CLI Tool which is based on this package.

install

  1. install Golang
  2. go get simonwaldherr.de/go/zplgfa

example

take a look at the example application
or at this sample code:

package main

import (
    "simonwaldherr.de/go/zplgfa"
    "fmt"
    "image"
    _ "image/gif"
    _ "image/jpeg"
    _ "image/png"
    "log"
    "os"
)

func main() {
    // open file
    file, err := os.Open("label.png")
    if err != nil {
        log.Printf("Warning: could not open the file: %s\n", err)
        return
    }

    defer file.Close()

    // load image head information
    config, format, err := image.DecodeConfig(file)
    if err != nil {
        log.Printf("Warning: image not compatible, format: %s, config: %v, error: %s\n", format, config, err)
    }

    // reset file pointer to the beginning of the file
    file.Seek(0, 0)

    // load and decode image
    img, _, err := image.Decode(file)
    if err != nil {
        log.Printf("Warning: could not decode the file, %s\n", err)
        return
    }

    // flatten image
    flat := zplgfa.FlattenImage(img)

    // convert image to zpl compatible type
    gfimg := zplgfa.ConvertToZPL(flat, zplgfa.CompressedASCII)

    // output zpl with graphic field data to stdout
    fmt.Println(gfimg)
}

label server

If you have dozens of label printers in use and need to fill and print label templates, this tool will help you:

SimonWaldherr/ups - GitHub

Is it any good?

Yes

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].