public static Bitmap readFromDisk(@NonNull File imageFile){
  if (!imageFile.exists() || imageFile.isDirectory())   return null;
  return BitmapFactory.decodeFile(imageFile.getAbsolutePath());
}

public static Bitmap readFromDisk ( @ NonNull File imageFile ) { if ( ! imageFile . exists ( ) || imageFile . isDirectory ( ) ) return null ; return BitmapFactory . decodeFile ( imageFile . getAbsolutePath ( ) ) ; }
reads the given file as bitmap . this is a blocking operation running on the main thread - avoid using it for large images .
