docs: public static int getOrientation(InputStream is) {
      try {
        int length = moveToAPP1EXIF(is);
        if (length == 0) {
          return ExifInterface.ORIENTATION_UNDEFINED;
        }
        return TiffUtil.readOrientationFromTIFF(is, length);
      } catch (IOException ioe) {
        return ExifInterface.ORIENTATION_UNDEFINED;
      }
    }