0.0.2 • Published 3 years ago

intelligent-cutter v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

intelligent-cutter

Installation

npm

$ npm install intelligent-cutter --save

Usage

Use with npm

var intelligentCutter = require('intelligent-cutter');

function handle(e) {
  intelligentCutter(
      {
        imageUrls: [
          'https://test-1254455861.cos-website.ap-chengdu.myqcloud.com/data/null/20201014/412c7f6597ab64047404c6327fcb0798.jpg',
          'https://test-1254455861.cos-website.ap-chengdu.myqcloud.com/data/capture_service/20210524/f9c06b54c582c323af9fea7dfac3ed86.png',
          'https://test-1254455861.cos-website.ap-chengdu.myqcloud.com/data/capture_service/20210524/7db79d77642bae5e244d24af2dbeea48.png'
        ],
        screenWidth: 1000,
        screenHeight: 300,
        redundancyHeight: 50,
      },
      (data: any) => {
        console.log('data: ', data);
        if (data.suc) {
          setImgs(data.imgs);
        }
      },
    );
}
### Browser compatibility

- IE9+
- Firefox
- Chrome
- Safari
- Opera


### License

  [MIT](LICENSE)