Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

avg-crop-img

curry-wxj3MIT1.0.2

  • 可以传一张图片地址;会将图片裁剪为大小相同的块

crop, img, crop-img

readme

图片裁剪

  • 可以传一张图片地址;会将图片裁剪为大小相同的块
  • 默认裁剪为4张图片
    • rowCount默认为2;表示横向为2
    • colCount默认为2;表示纵向为2
      import cropImg from "avg-crop-img";
      cropImg({
      url: "https://p437.ssl.qhimgs4.com/t0133e543baa348bae0.png",
      rowCount: 3,
      colCount: 2,
      }).then((res) => {
      console.log(res);
      });