nat-media-image

1.0.2 • Public • Published

nat-media-image

Installation

weexpack plugin add nat-media-image
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'
 
// preview
Nat.image.preview([
    'http://domain.com/image/1',
    'http://domain.com/image/2',
    'http://domain.com/image/3',
])
 
// pick image from gallery
Nat.image.pick((err, ret) => {
    console.log(ret)
})
 
// get info
Nat.image.info('http://domain.com/image', (err, ret) => {
    console.log(ret)
})
 
// get exif info
Nat.image.exif('http://domain.com/image', (err, ret) => {
    console.log(ret)
})
 
</script> 

See the Nat Documentation for more details.

Package Sidebar

Install

npm i nat-media-image

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

69.2 MB

Total Files

969

Last publish

Collaborators

  • natjs