jimp-plugin-newsprint

1.0.5 • Public • Published

jimp-plugin-newsprint

install

npm i jimp-plugin-newsprint

usage

import Jimp from 'jimp';
import configure from '@jimp/custom';
import newsprint from "jimp-plugin-newsprint";
configure({ plugins: [newsprint] }, Jimp);
 
const img = await Jimp.read('some picture')
img.newsprint()

params

newsprint(cellType, cellWidth, angle)
 
// cellType string "line"(default) | "round" | "diamond"
// cellWidth number 50(default)
// angle number rotation angle in degree  -45(default)

Package Sidebar

Install

npm i jimp-plugin-newsprint

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

57.8 kB

Total Files

11

Last publish

Collaborators

  • mark2020