0.0.12 • Published 2 years ago
@ldoliang/effect-clip v0.0.12
@ldoliang/effect-clip
Clip the image's effect part. Get the coordinates of the opaque part of the picture.
env
browser
install
npm install @ldoliang/effect-clip
Usage
import { getClipInfo } from '@ldoliang/effect-clip';
getClipInfo(imgUrl).then(info => {
const { x, y, w, h } = info
});