import io


def read_img_bin(img_fn):
  """Get image binary from an image file.

  Args:
    img_fn: image file path.
  Returns:
    image binary data as bytes.
  """
  with io.open(img_fn, "rb") as f:
    img_bin_bytes = f.read()
    return img_bin_bytes