Skip to content

Update resize.py#183

Open
Anirudh257 wants to merge 1 commit intoyunjey:masterfrom
Anirudh257:patch-1
Open

Update resize.py#183
Anirudh257 wants to merge 1 commit intoyunjey:masterfrom
Anirudh257:patch-1

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