format value

This commit is contained in:
Antonio J. Delgado 2021-09-06 17:21:58 +03:00
parent 11ac1202ac
commit becd821997

View file

@ -75,7 +75,7 @@ class image_classifier:
for key in dir(self.exif_info): for key in dir(self.exif_info):
if key != 'cannot read a base/unknown IFD tag instance': if key != 'cannot read a base/unknown IFD tag instance':
sys.stdout.write(f"{key}: ") sys.stdout.write(f"{key}: ")
sys.stdout.write(self.exif_info[key]) sys.stdout.write(f"{self.exif_info[key]}")
self.append_people_to_exif(people) self.append_people_to_exif(people)
with open(file, 'wb') as new_image_file: with open(file, 'wb') as new_image_file:
new_image_file.write(self.exif_info.get_file()) new_image_file.write(self.exif_info.get_file())