Skip to content

Commit

Permalink
CB-13683: (android) set compression level to 100 for rotated images
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Celotti committed Aug 31, 2018
1 parent 77d7ab5 commit abed367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ private Bitmap rotateAccordingToExifOrientation(Uri uri) {

private Uri fromBitmapToUri(Context context, Bitmap inImage) {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
inImage.compress(Bitmap.CompressFormat.JPEG, 85, bytes);
inImage.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), inImage, "title", null);
return Uri.parse(path);
}
Expand Down

0 comments on commit abed367

Please sign in to comment.