How to delete all tags *including* [File] Comment

Started by linuxuser, December 06, 2017, 06:21:35 PM

Previous topic - Next topic

linuxuser

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

linuxuser

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

linuxuser

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!