Skip to content

clocklimited/PNG2ZebraKR203

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNG to Zebra KR203 Printer

Reads a PNG and outputs a stream of printer commands for the Zebra KR203

Usage

KR203 Kiosk printer doesn't support the label printer protocols provided by CUP. This will use as RAW device.

  const printer = require('png-to-zebra')
  const gm = require('gm').subClass({ imageMagick: true })

    gm(buffer)
      .resize(640)
      .density(300)
      .threshold('50%')
      .flatten()
      .toBuffer('PNG'
        , function (err, buffer) {
        if (err) console.log(err)
        printer(buffer)
      })

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published