1.0.1 • Published 4 years ago

m-capture_image v1.0.1

Weekly downloads
52
License
MIT
Repository
-
Last release
4 years ago

Installation and import

  • Using npm

    npm install m-capture_image
  • Using yarn

    yarn add m-capture_image
  • ES6 import mode

    import captureImage from 'm-capture_image'

Use examples

  • Usage

    captureImage(file).then(
      blob => {
        console.log('Blob', blob)
      },
      error => {
        console.log(error)
      }
    )

    Note: read the local file object file to intercept and return the blob object

  • 使用方式

    captureImage(file).then(
      blob => {
        console.log('Blob', blob)
      },
      error => {
        console.log(error)
      }
    )

    说明:读取本地文件对象 file 进行截取,返回 blob 对象

1.0.1

4 years ago

1.0.0

4 years ago