photo = BitmapFactory.decodeFile(cropFile);
try {
ExifInterface exif = new ExifInterface(cropFile);
int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION , ExifInterface.ORIENTATION_NORMAL);
int exifDegree = BitmapUtil.exifOrientationToDegrees(exifOrientation);
photo = BitmapUtil.rotate(photo, exifDegree);
} catch (Exception e) {}
마지막 photo 에 저장된 비트맵은 각도가 보정되어 나옵니다. 하지만 cropfile이라는 파일 경로에 있는 파일은 회전이 보정 되지 않았습니다.
파일의 회전을 바꾸는 방법을 아시면 조언 부탁드립니다.
확실히 회전 보정된 비트맵을 파일로 바꿔 저장했지만 화질이 너무 깨져서 이 방법을 여쭈어 보는 겁니다...