Is there a way for Termux to automaticaly run exiftool every time I take a picture from phone Camera?
I installed exiftool on Termux like mentioned in this post: https://www.reddit.com/r/fossdroid/comments/j7cxhy/use_exiftool_in_termux_to_easily_remove_exif_data/
But the thing is that I forget to run the command every time I take a picture from my camera, and when I do run it like a couple days later, the date on the processed photos in the gallery says the photos were taken on the day they were processed. Is there a way to autorun the exiftool command whenever I take a picture or am I stuck with wrong dates for my photos in the gallery?
8 comments · 87% upvoted · other discussions
This sounds like the file system time stamp is read, not the embedded data. Try adding the
-P(-preserve) option to your command.To fix the already processed files, you might try copying the embedded time stamp to the file system one.
exiftool '-FileModifyDate<DateTimeOriginal' /path/to/files/