https://pillow.readthedocs.io/en/stable/reference/open_files.html
File handling in Pillow - Pillow (PIL Fork) 12.2.0 documentation
When opening a file as an image, Pillow requires a filename, os.PathLike object, or a file-like object. Pillow uses the filename or Path to open a file, so for...
file handling in pillowforkdocumentation