ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: adayzdone on April 18, 2013, 09:32:30 AM

Title: Delete metadata
Post by: adayzdone on April 18, 2013, 09:32:30 AM
Is there a command to delete all metadata (that ExifTool is capable of)  from a file regardless of the type of file specified. 

If not, is there a list of commands or a script for each file type?
Title: Re: Delete metadata
Post by: Phil Harvey on April 18, 2013, 11:10:50 AM
The command is:

exiftool -all= FILE

But note that this is only really 100% effective for JPEG images.  Other file types may have some lingering metadata after this command is run.

- Phil
Title: Re: Delete metadata
Post by: adayzdone on April 18, 2013, 12:55:57 PM
Hi Phil,

Thanks for the response. I should have been more specific in my question. Is there a script or a list that addresses the lingering metadata of all file types other than JPEG?
Title: Re: Delete metadata
Post by: Phil Harvey on April 18, 2013, 12:59:16 PM
No, sorry.

- Phil
Title: Re: Delete metadata
Post by: Stephen Marsh on November 17, 2017, 02:01:48 AM
My "go to" command is:

exiftool -all= -CommonIFD0= -Adobe:All= FILEorDIR


(the Adobe tag may be superfluous, I can't remember why I originally put it there, I'm hoping that it was for a good reason!
Title: Re: Delete metadata
Post by: StarGeek on November 17, 2017, 04:33:05 AM
Quote from: Stephen Marsh on November 17, 2017, 02:01:48 AM
(the Adobe tag may be superfluous, I can't remember why I originally put it there, I'm hoping that it was for a good reason![/tt]

Maybe because it isn't deleted by default.  It can sometimes hold color data that may affect the image if removed, but I don't think any photo image is included.  The original example post (which I can't seem to find) showed an extreme color difference when it was removed, but it was also a created image, not a photo.

From what I recall, there wasn't any data in the chunk that could be used to identify the source of the image, so I tend not to worry about it.
Title: Re: Delete metadata
Post by: Phil Harvey on November 17, 2017, 07:10:36 AM
Right. The Adobe APP14 segment (https://exiftool.org/TagNames/JPEG.html#Adobe) stores only color information.

Here is the post (https://exiftool.org/forum/index.php/topic,6448.msg32114.html#msg32114) that StarGeek was looking for.

- Phil
Title: Re: Delete metadata
Post by: StarGeek on November 17, 2017, 02:14:43 PM
Actually, I was looking for the original bug report.  It should have been around February 2012 as that's when the avoid deleting APP14 code was added according to the version history.

It's just sorta weird that I couldn't find it.  I did far too much digging around in the depths of the forum, but it was interesting seeing some of the old posts.