Function read

  • Read an image from the disk. The file format is automatically selected based on the first few bytes.

    Parameters

    • path: string | URL

      The path to the image.

    Returns Promise<Image>

    Image instance.