# vue-core-image-upload
**Repository Path**: mirrors_Vanthink-UED/vue-core-image-upload
## Basic Information
- **Project Name**: vue-core-image-upload
- **Description**: a vue plugin for image to crop and upload
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2022-01-06
- **Last Updated**: 2025-11-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Vue-Core-Image-Upload
[]()
a vue plugin for image upload and crop ( Support π± IE10+)
[ζ₯ηζζ‘£](http://vanthink-ued.github.io/vue-core-image-upload/index.html#/cn/get-started)
[English Document](http://vanthink-ued.github.io/vue-core-image-upload/index.html#/en/home)
if you use vue.js(<=2.0), you should go [here](https://github.com/Vanthink-UED/vue-core-image-upload/tree/v1.x).Or select
1.x.x version.
### Install
``` bash
npm i vue-core-image-upload --save
```
Code Example (ES6)
``` html
| Props | Data Type | Example | Details |
|---|---|---|---|
| url | String | '/crop.php' | Your server api |
| text | String | 'Upload Image' | The text of your uploading button |
| inputOfFile | String | 'file' | Yout input[file] name |
| extensions | String | 'png,jpg,gif' | Limit the image type |
| crop | Boolean | 'server' | Crop image option |
| cropRatio | String | '1:1' | The cropped image shape |
| cropBtn | Object | {ok:'Save','cancel':'Give Up'} | The Text of cropping button text |
| maxFileSize | Number | 10485760(10M) | Limit the size of the file |
| maxFileSize | Number | 10485760(10M) | Limit the size of the file |
| multipleSize | Number | 5 | Limit the count of the file |
| maxWidth | Number | 150 | The maximum width of cropped image |
| maxheight | Number | 150 | ιεΆεΎηηζε€§ι«εΊ¦ |
| inputAccept | string | 'image/*' / 'image/jpg,image/jpeg,image/png' | the input[file] accept |
| compress | Number | 50 | Set the quality of compressed image |
| isXhr | Boolean | true | IF cancel ajax uploading |
| headers | Object | {auth: xxxxx} | Set customed header when ajax uploading |
| data | Object | {auth: xxxxx} | Set customed data when ajax posting server |