load_image

load_image(image_path: str | Path) Image[source]

Load an Image.Image instance, populate the instance and close file descriptor.

Parameters:

image_path (str | Path) – Path to the image that should be loaded.

Return type:

Image.Image