Thread

Posted on Wed May 14 19:25:43 2008 by bogdan
Some other exif tags deleted after deleting UserComment
Hi Phil,

Assume, I have total empty (no metadata) jpg file. Then I add Exif:UserComment tag only. After doing that, exiftool automatically add some other exif tags (resolution, etc.) -that's not a problem.
The problem is, if I would like to keep those automatically added tags. The problem is, if I then delete UserComment only, all previously added tags are deleted too -except I assign some other (than default) values to them.
Is that normal/expected behaviour?

Greetings,
Bogdan
Direct Responses: 7878 | Write a response
Posted on Wed May 14 19:35:57 2008 by exiftool in response to 7877
Re: Some other exif tags deleted after deleting UserComment
This is by design. I thought it made sense that if you add a tag then remove it again you end up with the file you started with. So if you delete a tag and only mandatory tags with the default values remain, then they are deleted too.

If you want to keep the other mandatory tags, you could do something like "-exifversion=0220" when you delete the UserComment tag.

- Phil
Direct Responses: 7879 | Write a response
Posted on Wed May 14 19:59:35 2008 by bogdan in response to 7878
Re: Some other exif tags deleted after deleting UserComment
Thank you for answering. It is really no big deal -I just want to be sure :-)

Bogdan
Write a response