Image.open() cannot identify image file – Python? February 28, 2023 by Tarik I had a same issue. from PIL import Image instead of import Image fixed the issue