Summary https://pillow.readthedocs.io/en/stable/reference/Image.html
PIL.Image.open(fp, mode=‘r’, formats=None)
fp – A filename (string), pathlib.Path object or a file object. classPIL.Image.Image[source] This class represents an image object. To create Image objects, use the appropriate factory functions. There’s hardly ever any reason to call the Image constructor directly.
open() new() frombytes() An instance of the Image class has the following methods. Unless otherwise stated, all methods return a new instance of the Image class, holding the resulting image....