I need to remove all metadata from the pictures in one folder, except for the date it was taken.

Is there a way to remove all metadata with an exception?

The current command I use is:

exiftool -all= *.jpg

I tried to read the man for exiftool but I'm still having trouble with the command.



Figured it out finally:

exiftool -all= -tagsFromFile @ -*date* *.jpg
  • 1
    You can also use: -AllDates for the dates. You can use -P and -overwrite_original_in_place to preserve filesystem modification (+creation) date. exiftool -P -all= -tagsFromFile @ -AllDates -overwrite_original_in_place *.jpg – pd12 Apr 2 '18 at 3:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.