Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 378 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 378 Bytes

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)