Skip to content

Commit

Permalink
Maintain mJpegQuality Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcross committed Sep 20, 2017
1 parent 8ff6779 commit c23f8b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public void onPictureTaken(byte[] jpeg) {
if(ExifUtil.getExifOrientation(jpeg) != ExifInterface.ORIENTATION_NORMAL || mFacing == FACING_FRONT){
Bitmap bitmap = ExifUtil.decodeBitmapWithRotation(jpeg, mFacing == FACING_FRONT);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
bitmap.compress(Bitmap.CompressFormat.JPEG, mJpegQuality, stream);
jpeg = stream.toByteArray();
}

Expand Down

0 comments on commit c23f8b7

Please sign in to comment.