public static @Nullable ImageRequest fromFile(@Nullable File file) {
    return (file == null) ? null : ImageRequest.fromUri(UriUtil.getUriForFile(file));
  }
Custom downsample override for this request. null -> use default pipeline's setting.
imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequest.java