0.0.1 • Published 6 years ago
add-image-border v0.0.1
add-image-border
Add border to image
Before | After |
---|---|
Install
$ npm install add-image-border --save
Usage
const addBorder = require('add-image-border');
addBorder(['image.png', 'image2.jpg'], {background: '#8c989f', bordersize: '150'});
API
addBorder(images, {options})
input
Type: array
List of file to be processed.
options
background
Type: string
Default: #FFFFFF
Color of border.
borderSize
Type: string
Default: 150
Border width in px.
Note
This module uses canvas module as dependency which requires Cairo
check here how to install it.
License
MIT © beatfreaker
0.0.1
6 years ago