Skip to content

Conversation

Anirudh257
Copy link

Added the lines "ImageFile.LOAD_TRUNCATED_IMAGES = True" to ensure that even truncated images can be downloaded and " if imghdr.what(os.path.join(image_dir, image)) != None:" to load only correct images and ignore corrupted images.

Added the lines "ImageFile.LOAD_TRUNCATED_IMAGES = True" to ensure that even truncated images can be downloaded and "            if imghdr.what(os.path.join(image_dir, image)) != None:" to load only correct images and ignore corrupted images.
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

Successfully merging this pull request may close these issues.

1 participant