public int getExifOrientation() {
    parseMetadataIfNeeded();
    return mExifOrientation;
  }
Returns the exif orientation if known (1 - 8), else 0.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java