public @Nullable ColorSpace getColorSpace() {
    parseMetadataIfNeeded();
    return mColorSpace;
  }
The color space is always null if Android API level < 26.

@return the color space of the image if known, else null.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java