ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: linuxuser on December 06, 2017, 06:21:35 PM

Title: How to delete all tags *including* [File] Comment
Post by: linuxuser on December 06, 2017, 06:21:35 PM
exiftool -q -q -overwrite_original -all=

deletes all tags, but not

[File]               - Comment

Is it possible to delete a directory of photos with all tags including comment with a 1 line command? I am running linux with bash.
Title: Re: How to delete all tags *including* [File] Comment
Post by: Phil Harvey on December 06, 2017, 06:54:44 PM
That command does delete the comment.  If it doesn't for your file, send me a sample and I'll figure out what is happening. (philharvey66 at gmail.com)

- Phil
Title: Re: How to delete all tags *including* [File] Comment
Post by: linuxuser on December 06, 2017, 08:06:18 PM
I am sorry, I have deleted these files. They were taken with a Pentax KP and K-1, size reduced with ImageMagick and some metadata manipulations with exiftool. Other files from these cameras now work fine created the same way. So strange, I am sure, that I saw the comment and not the other metadata like EXIF, XMP, a.s.o. after I executed the command above. I will check the next time and come back, when I have a file.
Title: Re: How to delete all tags *including* [File] Comment
Post by: Phil Harvey on December 06, 2017, 08:08:36 PM
If this was a JPEG file, I can save you the trouble:  There is no way that this could happen unless there was some sort of problem in the file that prevented it from being written.

- Phil
Title: Re: How to delete all tags *including* [File] Comment
Post by: linuxuser on December 06, 2017, 09:40:58 PM
I am so confused, because parts of the metadata have been deleted and I am so sure, that I saw this. The photos were very unimportant, just test files for a forum, so I deleted them without thinking on a bugreport. Mainly I wanted to delete the serialno in the Makernotesm, which worked. Unfortunately I did not post the photos. Later I had the idea to ask here about the comment field. Thanks!