idealo / imagededup

😎 Finding duplicate images made easy!
https://idealo.github.io/imagededup/
Apache License 2.0
5.1k stars 458 forks source link

cannot identify image file 'filename.png' 2021-01-17 20:12:33,709: WARNING Invalid image file filename.png: #136

Closed awsaf49 closed 3 years ago

awsaf49 commented 3 years ago

Getting this error, cannot identify image file 'filename.png' 2021-01-17 20:12:33,709: WARNING Invalid image file filename.png: in v0.2.4 for .png file

tanujjain commented 3 years ago

Th version 0.2.4 is not available on pip yet. pip installs 0.2.2. Anyhow, are you sure that the file is not corrupt? You can quickly try to also see if the following code loads the image:

from PIL import Image
im = Image.open('path/to/image')
awsaf49 commented 3 years ago

I think image_dir requires writing access.

Joshfindit commented 3 years ago

I think image_dir requires writing access.

Do you mean that you verified that the image is intact and valid, but that imagededup did not have write access to the folder that image was in?

awsaf49 commented 3 years ago

I think image_dir requires writing access.

Do you mean that you verified that the image is intact and valid, but that imagededup did not have write access to the folder that image was in?

yes