vue-image-crop-upload icon indicating copy to clipboard operation
vue-image-crop-upload copied to clipboard

How to change minimum size for Upload image?

Open edutucci opened this issue 5 years ago • 2 comments

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.

edutucci avatar Sep 11 '19 14:09 edutucci

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">

rintosarkar avatar Oct 15 '19 06:10 rintosarkar

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.

mariusa avatar Nov 02 '19 11:11 mariusa