vue-image-crop-upload
vue-image-crop-upload copied to clipboard
How to change minimum size for Upload image?
The component requires the mimimum 300x300 to upload an image. In my case I have images with lower sizes. Ex: 200x 200, 265 x 190 and others. I can't upload that images because the component requires 300x300.
You can defined minimum lower size with your components options as :width="265" :height="190" <my-upload field="img" @crop-success="cropSuccess" @crop-upload-success="cropUploadSuccess" @crop-upload-fail="cropUploadFail" v-model="show" :width="300" :height="300" url="/upload" :params="params" :headers="headers" img-format="png">
How about forcing a maximum width or height? eg maximum width is 300, but users could upload 200x100 (optional crop), or 1000x800 -- in this case crop would be forced to maximum 300x800.