1.0.3 • Published 6 years ago

img-utils v1.0.3

Weekly downloads
13
License
-
Repository
github
Last release
6 years ago

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)
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago