Function exifread.process_file(image) didnt work for some images with corrupted exif info. To put it to work I set an extra check: if buf variable exist we need to check that length of buf more than 1. Because if buf equals 1 function gives error "struct.error: unpack requires a buffer of 2 bytes" and function stop iterating to next files.
Function
exifread.process_file(image)
didnt work for some images with corrupted exif info. To put it to work I set an extra check: if buf variable exist we need to check that length of buf more than 1. Because if buf equals 1 function gives error "struct.error: unpack requires a buffer of 2 bytes" and function stop iterating to next files.