The img-utils is utility image library. It offers cropping feature.
Overwrite createCanvas
when you need use other platform. The default platform is browser.
imgUtils.setup({
createCanvas: ()=> new Canvas()
})
Crop image space of top and bottom.
imgUtils.crop(canvas)