ExifTool Forum

ExifTool => Newbies => Topic started by: bodacious on May 10, 2020, 03:49:01 PM

Title: Clear metadata, leaving originals in place, with modified files moved to subdir
Post by: bodacious on May 10, 2020, 03:49:01 PM
Is it possible, with one command, to recursively clear all of the metadata from photos, leaving the original files in place and untouched, but the scrubbed files moved to a 'clean' subdirectory, relative to the original image?

Final directory structure as so:
directory/file.ext <--- unmodified
directory/clean/file.ext <--- metadata erased
directory/another_dir/file.ext
directory/another_dir/clean/file.ext

Cheers!
Title: Re: Clear metadata, leaving originals in place, with modified files moved to subdir
Post by: StarGeek on May 10, 2020, 04:19:04 PM
This should do what you want, but test it to be sure.
exiftool -r -o %d/clean/%F -all= /path/to/source/
Title: Re: Clear metadata, leaving originals in place, with modified files moved to subdir
Post by: bodacious on May 11, 2020, 01:16:41 PM
That's amazing, thank you very much. Works as expected.