Android-image-cropper: Fix size of cropping window

Created on 8 Oct 2019  路  5Comments  路  Source: ArthurHub/Android-Image-Cropper

Can i keep a fix size of the cropping window. the width and height should 300 X 300. User can just reduce the cropping window but cannot make it a larger one because my server side can store image of width and height upto 300 x 300.

Thanks

Most helpful comment

@Ani24may hello I have found something you can set this both as same to crop of fixed size
.setMinCropResultSize(1000,500)
.setMaxCropResultSize(1000,500)

All 5 comments

@Ani24may Hey have you found any solution?

no, not yet

@Ani24may hello I have found something you can set this both as same to crop of fixed size
.setMinCropResultSize(1000,500)
.setMaxCropResultSize(1000,500)

Thanks mate. Will definitely try this.

thanks @abbasalid
Below code works for me.

CropImage.activity().setGuidelines(CropImageView.Guidelines.ON)
.setMinCropResultSize(500, 300)
.setMaxCropResultSize(500, 300)
.start(this);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danponce picture danponce  路  3Comments

PujieWear picture PujieWear  路  5Comments

emondd4 picture emondd4  路  11Comments

umutkina picture umutkina  路  4Comments

joseph-acc picture joseph-acc  路  9Comments