Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete metadata #89

Open
krolaper opened this issue Jun 9, 2024 · 1 comment
Open

delete metadata #89

krolaper opened this issue Jun 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@krolaper
Copy link

krolaper commented Jun 9, 2024

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

@sylikc
Copy link
Owner

sylikc commented Jun 19, 2024

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 sylikc added the question Further information is requested label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants