annotate-icon

0.1.0 • Public • Published

annotate-icon

Add annotation to icons.

Install

$ npm install --save annotate-icon

Quickstart

var annotate = require('annotate-icon');
var path = require('path');

annotate({ 
    input: path.join(__dirname, "icon-small.jpg"),
    output: path.join(__dirname, "icon-small.output.png"),
    background: "rgba(0, 255, 0, 0.65);",
    foreground: "#ffffff",
    text: { top: "EXAMPLE", bottom: "example" } 
}, function(err,infos) {
    console.log(err)
    console.log(infos)
});

Before

After

Copyright and license

MIT © Aloïs Deniel

/annotate-icon/

    Package Sidebar

    Install

    npm i annotate-icon

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • aloisdeniel