Skip to content

Commit

Permalink
Don't log message for undefined EXIF rotation
Browse files Browse the repository at this point in the history
Summary: Currently, you will see Log.info entries `TiffUtil: Unsupported orientation` for each image with an undefined orientation - which is not true.

Reviewed By: kirwan

Differential Revision: D3819499

fbshipit-source-id: b0917cb77c32c639fc2e72e65f8e157811b56c2a
  • Loading branch information
oprisnik authored and Facebook Github Bot 2 committed Sep 5, 2016
1 parent 86912b0 commit a449d46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class TiffUtil {
public static int getAutoRotateAngleFromOrientation(int orientation) {
switch (orientation) {
case ExifInterface.ORIENTATION_NORMAL:
case ExifInterface.ORIENTATION_UNDEFINED:
return 0;
case ExifInterface.ORIENTATION_ROTATE_180:
return 180;
Expand Down

0 comments on commit a449d46

Please sign in to comment.