Skip to content

rafgenduke/cordova-plugin-zpl-image-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Plugin Image to ZPL Code

Hi! This cordova plugin converts images to ZPL-Code. To use this plugin you need the permission READ_EXTERNAL_STORAGE. This plugin is Android only.

Installation

npm install cordova-plugin-zpl-image-converter
cordova plugin add cordova-plugin-zpl-image-converter

Usage

(window as any).plugins.zplImageConverter.convertImage(filePath: string, width: number, height: number, angle: number, zplCode => {
    // Your code
  }, err => {
    // Your error-handling
});

angle describes the rotation of the image

If you set the height and width parameters to 0, no scaling will be performed.

Special Mentions

Based on: http://www.jcgonzalez.com/java-image-to-zpl-example Git-Repo: https://github.com/rafgenduke/cordova-plugin-zpl-image-converter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published