JSPM

jimp-plugin-newsprint

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q39333F
  • License ISC

a jimp plugin for newsprint effect

Package Exports

  • jimp-plugin-newsprint

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jimp-plugin-newsprint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)