img2url

1.0.2 • Public • Published

PNG to data URL

Converts PNG Images to a data URL.

Usage Commandline

img2url {PATH to Image} {PATH to Output File}

The Path to the Output File is optional, when you don´t set it the Path of the Image File was used.

Code Usage

const IMG2URL = require('img2url');
let cnv = new IMG2URL();
 
// do it Syncron
cnv.getUrlSync('/myimage.png');
 
// do it Asyncron
cnv.getUrl('/myimage.png', function (err, data) {
    // do something with the data...
});

Readme

Keywords

none

Package Sidebar

Install

npm i img2url

Weekly Downloads

5

Version

1.0.2

License

none

Last publish

Collaborators

  • nodejayes