https://github.com/elonsoft/vue-image-cropper
Image uploader and cropper for Vue.js
https://github.com/elonsoft/vue-image-cropper
crop-image cropper uploader vue
Last synced: 4 months ago
JSON representation
Image uploader and cropper for Vue.js
- Host: GitHub
- URL: https://github.com/elonsoft/vue-image-cropper
- Owner: Elonsoft
- Created: 2017-09-15T10:01:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T10:11:43.000Z (over 8 years ago)
- Last Synced: 2025-10-04T08:22:33.832Z (9 months ago)
- Topics: crop-image, cropper, uploader, vue
- Language: Vue
- Homepage:
- Size: 830 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-image-cropper
Image uploader and cropper for Vue.js
## Installation
NPM:
```bash
npm install --save vue-image-cropper
```
## Usage
```html
import VueImageCropper from 'vue-image-cropper';
export default {
components: {
VueImageCropper
}
};
```
## Options
### accept
Value of "accept" attribute for file input
* Type: `string`
### cropOptions
* Type: `Object`
Properties and default values:
```json
aspectRatio: NaN,
height: 0,
width: 0
```
### locales
* Type: `Object`
Properties and default values:
```json
title: 'Drop file here or click to select file',
cancel: 'Cancel',
confirm: 'Confirm'
```
### path
Path to image or base64
* Type: `string`
### styles
* Type: `Object`