ArthurHub / ArthurHub/Android-Image-Cropper
Compress image is not working crop_image_view.saveCroppedImageAsync(Uri.fromFile(destinationFile), Bitmap.CompressFormat.JPEG, 50);
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Below is my code XML and JAVA. When I capture an image or upload a large image while cropping I want to compress the image too to reduce the file size!
The file size I am getting is around 2mb
```
crop_image_view.setImageUriAsync(sourceUri);
crop_image_view.setOnCropImageCompleteListener(new CropImageView.OnCropImageCompleteListener() {
@Override
public void onCropImageComplete(CropImageView view, CropImageView.CropResult result) {
System.out.println("CROP " + result.getUri());
}
});
crop_image_view.saveCroppedImageAsync(Uri.fromFile(destinationFile),
Bitmap.CompressFormat.JPEG, 50);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.