Rx-Get-image
use jitpack
RxGetImage.newBuilder().needCorp(true).isSingle(true).corpWidth(2).corpHeight(1).build()
.subscribe(new Subscriber<File>() {
@Override
public void onCompleted() {
// todo
}
@Override
public void onError(Throwable e) {
// todo
}
@Override
public void onNext(File file) {
// todo
}
});
default config:
needCorp = false;
needCompress = true;
isSingle = true;
isTakePhoto = false;
maxArraySize = Integer.MAX_VALUE;
maxSizeInKib = 700;
maxWidthInPx = 1920;
maxHeightInPx = 1920;
corpHeight = 1;
corpWidth = 1;
read javadoc in jitpack