Change to only modify and no add
This commit is contained in:
parent
b27387cc64
commit
11ac1202ac
1 changed files with 3 additions and 3 deletions
|
@ -76,11 +76,11 @@ class image_classifier:
|
||||||
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(self.exif_info[key])
|
||||||
|
self.append_people_to_exif(people)
|
||||||
|
with open(file, 'wb') as new_image_file:
|
||||||
|
new_image_file.write(self.exif_info.get_file())
|
||||||
else:
|
else:
|
||||||
self._log.debug("No exif info in the image.")
|
self._log.debug("No exif info in the image.")
|
||||||
self.append_people_to_exif(people)
|
|
||||||
with open(file, 'wb') as new_image_file:
|
|
||||||
new_image_file.write(self.exif_info.get_file())
|
|
||||||
# get date
|
# get date
|
||||||
# move to destination
|
# move to destination
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue