PIL image.open() working for some images but not others
Maybe be the content is not actually synced to the disk. try Image.open(open("path/to/file", 'rb'))
You can use cv2
to read the image.
im = cv2.imread(path)
And, for opening/displaying, you can use:
cv2.imshow()
For
im = Image.open("path/to/file")
Try
im = Image.open(r"path/to/file")
That is, put a r
before the path string.