nat-media-image
v1.0.2
Published
Nat.js module for weex: Image
Downloads
2
Maintainers
Readme
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.