@imgsplit/core
v0.1.2
Published
An image splitter
Readme
ImgSplit
安装
npm i @imgsplit/coreor
yarn add @imgsplit/core使用
import {imgsplit} from "@imgsplit/core";
const result = await imgsplit(
'https://imgsplit.github.io/images/example.png',
256
);
for (let i = 0; i < result.length; i++) {
const {
x, y,
width, height,
dataURL
} = result[i];
// ...
}