annotate-icon
Annotate your icons.
Last updated 3 years ago by aloisdeniel .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install annotate-icon 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

1 Versions

  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |