craftutils.observation.image.from_path(path: str, cls: type | None = None, **kwargs)

To be used when there may already be an image instance for this path floating around in memory, and it’s okay (or better) to access this one instead of creating a new instance. When the image may have overwritten a previous file, instantiating the image directly is better.

Parameters
path: str

cls: type | None = None

**kwargs

Returns