img-utils

1.0.3 • Public • Published

img-utils

The img-utils is utility image library. It offers cropping feature.

API

setup(object)

Overwrite createCanvas when you need use other platform. The default platform is browser.

imgUtils.setup({
  createCanvas: ()=> new Canvas()
})

crop(canvas:Canvas)

Crop image space of top and bottom.

imgUtils.crop(canvas)

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i img-utils

    Weekly Downloads

    2

    Version

    1.0.3

    License

    none

    Last publish

    Collaborators

    • sparrowjang