Image uploader and cropper for Vue.js
NPM:
npm install --save vue-image-cropper
<template>
<vue-image-cropper></vue-image-cropper>
</template>
<script>
import VueImageCropper from 'vue-image-cropper';
export default {
components: {
VueImageCropper
}
};
</script>
Value of "accept" attribute for file input
- Type:
string
- Type:
Object
Properties and default values:
aspectRatio: NaN,
height: 0,
width: 0
- Type:
Object
Properties and default values:
title: 'Drop file here or click to select file',
cancel: 'Cancel',
confirm: 'Confirm'
Path to image or base64
- Type:
string
- Type:
Object