public ImageFormat getImageFormat() {
    parseMetadataIfNeeded();
    return mImageFormat;
  }
Returns the image format if known, otherwise ImageFormat.UNKNOWN.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java