Skip to content

Commit

Permalink
fix(camera): Reset exif orientation if corrected (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jul 6, 2021
1 parent df1434b commit a65c05e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -78,7 +78,9 @@ public static Bitmap correctOrientation(final Context c, final Bitmap bitmap, fi
if (orientation != 0) {
Matrix matrix = new Matrix();
matrix.postRotate(orientation);

ExifInterface exif = new ExifInterface(imageUri.getPath());
exif.resetOrientation();
exif.saveAttributes();
return transform(bitmap, matrix);
} else {
return bitmap;
Expand Down

0 comments on commit a65c05e

Please sign in to comment.