# vue-img-uploader

> img uploader component for vuejs

Latest version **1.0.0** (published 2018-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-img-uploader
pnpm add vue-img-uploader
yarn add vue-img-uploader
bun add vue-img-uploader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-10-28 |
| First published | 2018-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | eret9616 |
| Maintainers | eret9616 |
| Keywords | imguploader, vue, img, upload, uploader, image |

## Links

- npm: https://www.npmjs.com/package/vue-img-uploader
- Repository: https://github.com/eret9616/vue-img-uploader
- Homepage: https://github.com/eret9616/vue-img-uploader#readme
- Issues: https://github.com/eret9616/vue-img-uploader/issues
- npm.io page: https://npm.io/package/vue-img-uploader

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-10-28

## README

**vue-img-uploader**

# Installation
```
npm install vue-img-uploader 
```
# Use
```
import Vue from 'vue'
import loader from 'vue-img-uploader'

Vue.use(loader)
```
# Get Start
```
<template>
  <div>
    <loader :config='config' :output='output'/>
  </div>
</template>

<script>
export default{
    data(){
      return{
          output:[],
          config:{
            ext:'',
            size:function(s){},
            width:function(w){},
            height:function(h){}
          }
      }
    }
}
</script>
```

# Props
**ouputs**:<br/>*An array to storage input files*  
**ext**:<br/>*Image extention name,eg:'png','jpg'..*  
**size,width,height**:<br/>*A function that handle the input image file's size/width/height*,<br/>
*To interrupt the input process,"return false" in these functions*

# More
Check source code to customize your css style  
Use this.$refs.[ref].reset( ) to clear thumb-image manually

# License
MIT

---
_Source: https://npm.io/package/vue-img-uploader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
