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

How to delete tag #104

Closed
medikoo opened this issue Dec 15, 2021 · 3 comments
Closed

How to delete tag #104

medikoo opened this issue Dec 15, 2021 · 3 comments

Comments

@medikoo
Copy link

medikoo commented Dec 15, 2021

I wonder how to delete the existing tag. The documentation states just how to write (update or create tags), but there's no word on how specific tags can be removed

@mceachen
Copy link
Member

Values can be removed by setting a value to null, like:

      await exiftool.write(src, { ExposureTime: null })

to erase ExposureTime, or

      await exiftool.write(src, { AllTimes: null })

to erase all of the AllTimes" tags (see the documentation for this shortcut

The typings don't currently suggest this is valid, though: the next release will include corrections to the WriteTags type. I hope to release in the next day or two with these typings changes and additional specs.

@medikoo
Copy link
Author

medikoo commented Dec 20, 2021

@mceachen great thanks for explanations! It'll be nice to have that put somewhere in docs

mceachen added a commit that referenced this issue Dec 21, 2021
@mceachen
Copy link
Member

This is now released with version 15.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants