0.1.0 • Published 7 years ago
annotate-icon v0.1.0
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
0.1.0
7 years ago