pyexiftool icon indicating copy to clipboard operation
pyexiftool copied to clipboard

delete metadata

Open krolaper opened this issue 1 year ago • 1 comments

Tell me how to correctly delete all metadata in a file and overwrite it?

I tried this:

with exiftool.ExifTool() as et:
    print(et.execute(*["-all:all="] + ['/path/file']))
    #or print(et.execute(*["-all="] + ['/path/file']))

but the result:

0 image files updated
    1 files weren't updated due to errors

and metadata is not cleared

by the way, as a result it writes: 0 image. This is not entirely correct, because I’m trying to clean up the .docx file

krolaper avatar Jun 09 '24 05:06 krolaper

first, what is the command you would run on the command line to clear all the metadata. From there, we can decipher how the call should be constructed in pyexiftool

Show a run on the command line, what was input, and what was output from exiftool. Expected output given a certain input...

sylikc avatar Jun 19 '24 16:06 sylikc