james-see / iptcinfo3

iptcinfo working for python 3 finally do pip3 install iptcinfo3
51 stars 31 forks source link

Using info.save() creates a copy of the original #22

Closed Clonimus74 closed 3 years ago

Clonimus74 commented 4 years ago

When I use info.save() I assume it will overwrite the original, but it also makes a backup of it. I don't know if it is by design, but when using this to batch tag many images it is undesirable.

I see that it happens at lines 689-690

if os.path.exists(newfile): shutil.move(newfile, newfile + '~')

wlockwood commented 3 years ago

I've hit this as well and was really hoping there would be an override somewhere. Seems to violate the principle of least surprise.

james-see commented 3 years ago

resolved by #29