![]() ![]() The part after "Filter=" is a perl regex substitution and you could further refine it by looking into regex. With your file: Code Select exiftool -all LM85ER20190925114526.jpg 1 image files updated exiftool -a -G0:1 -s LM85ER20190925114526.jpg ExifTool ExifToolVersion : 11. This will remove all metadata that can (safely) be removed from a file. If Description was "This is Odeon", it would become "This is ". Deleting every piece of metadata is actually quite simple: exiftool -all FILES. For example, if Location was equal to "Odeon", it would become a blank string. It would not remove the tag and if odeon was part of a longer string, the rest of the string would remain. Would remove "odeon" (case insensitive) from all tags in the file. Apps and platforms do not support EXIF meta data of any type. This command:Įxiftool -overwrite_original -api "Filter=s/odeon//gi" -tagsfromfile -all:all FileOrDir This image had 247 lines of exiftool output before uploading. ![]() If you wanted to remove a certain tag that contains "Odeon" as part of a longer string and be case insensitive, then you could add the -if option.Įxiftool -overwrite_original -if "$TAG=~/odeon/i" -TAG= FileOrDirįinally, there is the shotgun approach using the -api "Filter=…" option. It would not remove "oDeON" or other variations:Įxiftool -overwrite_original -TAG-="Odeon" FileOrDir But note that this will not exclude individual tags from a group delete. ExifTool will strip out all the Exif data from your photo and create a new file leaving the original photo untouched. all -exif:all deletes all but EXIF information). Note that this command is case sensitive. To remove the data with ExifTool, all you need to do is type exiftool -all pathtofile. If any of this is possible, wondering what tool (preferrably command-line tool) could accomplish this. If you want to be more selective and the tag contains ONLY the text "Odeon", then you could use this command. If we can't remove all the metadata that remains, I'm wondering if I can at least remove the first 3 attributes (ExifTool Version Number, File Name, and Directory). Take note that this command would remove that tag from all the files if you specify a dir. That would list all the tags that have your info.Īfter you found the tag, you could then remove it without having a backup file with this command, replacing TAG with the name of the tag:Įxiftool -overwrite_original -TAG= FileOrDir In that case, your command line would look like this:Įxiftool -g1 -a -s FileOrDir | Find "Odeon" ![]() You can pipe the output through another command line program like Find (since you're on Windows) or Grep (other platforms). Unfortunately, Exiftool doesn't have the ability to list only the tags that have matching data. Location is a different tag and you would have check there for that info. The reason that your command doesn't work is because you're only checking the Keywords tag. ![]()
0 Comments
Leave a Reply. |