How can I remove all the metadata from all the files inside a folder and its subfolders?
I've already tried several commands without any success. All of them were tied to a specific file extension and/or didn't go through all the subfolders inside.
How can I remove all the metadata from all the files inside a folder and its subfolders?
I've already tried several commands without any success. All of them were tied to a specific file extension and/or didn't go through all the subfolders inside.
You would use
exiftool -all:all= -r /path/to/files/
This command creates backup files. Add -overwrite_original
to suppress the creation of backup files.
You don't want to use wildcards to try to limit file selection (see Common Mistake #2). For that you would use the -ext
(extension) option.
Exiftool won't process any file that isn't on the writable file type list (see ExifTool FAQ #16), so files like AVI or MKV will be skipped.
You do not want to use this command on a RAW file type, such as NEF or CR2, as that will remove data that is required to render the image. See ExifTool FAQ #8.
-Adobe:All=
to the command to do so. See note #5 under the -TAG[+-^]=[VALUE]
option. But this block contains no personally identifiable data. There's no reason to remove it and, as I said, doing so has the possibility of severely altering the colors. See this exiftool forums post for example images. –
Beare ExifToolVersion
, which is simply the version of exiftool you're using. It's not embedded in the file. You'll also see File
, System
, and Composite
tags. The first two are properties of the file or the file system, such as image size, file size, permissions, etc. Composite
tags don't exist in the file and are created by exiftool on the fly for easy parsing of important data. The command in exiftool FAQ #3 is the best one to use as it will show everything, including duplicates, and their locations. –
Beare XAttr
or MDItem
. These are not embedded in the file but are part of the underlying file system. Exiftool can edit some of these, but there are probably better programs to remove them. Also, because they only exist as part of the file system, then will be removed if you upload the file or transfer to a Windows file system. –
Beare © 2022 - 2024 — McMap. All rights reserved.