Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
awsaf49 opened this issue Jan 17, 2021 · 4 comments

Comments

@awsaf49
Copy link

awsaf49 commented Jan 17, 2021

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
Copy link
Collaborator

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
Copy link
Author

awsaf49 commented Jan 18, 2021

I think image_dir requires writing access.

@awsaf49 awsaf49 closed this as completed Jan 18, 2021
@Joshfindit
Copy link

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
Copy link
Author

awsaf49 commented Jan 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants