james-see / iptcinfo3

iptcinfo working for python 3 finally do pip3 install iptcinfo3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Clonimus74 opened this issue · comments

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 + '~')

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

commented

resolved by #29