Hello everybody,
I just found ExifTool and I hope it will resolve my problem.
I wanted to upload photos to Google Photos. I already prepared folders on my laptop with photos in that way: \Year_Month_event_description\picture_name.jpg. I want to copy this folders over USB cable to my phone and than I will turn on backup for this folders in Google Photos app. But when I remove EXIF data all files are visible in Google Photos as made today despite this that all files have time and date when they were done. So I suppose that I will need to keep time and date in EXIF. How can I do that in once in all subfolders?
regards,
da1k
If the date is in the order of YEAR MONTH DAY HOUR MINUTES SECONDS (largest time unit to smallest) and doesn't include any extra numbers, then this would be covered by third paragraph of FAQ #5 (https://exiftool.org/faq.html#Q5) (starts "Having said this"). The example there would copy the date from the file name. To additionally recurse into sub-directories, you would add the -r option (https://exiftool.org/exiftool_pod.html#r-.--recurse) and to avoid the creation of backup files you would add the Overwrite_Original option (https://exiftool.org/exiftool_pod.html#overwrite_original).
I just am curious, though, as to why you felt you needed to remove the exif data in the first place?
Hello,
Thanks for an answer but I think we misunderstood. In current state my photos are with EXIF data (I checked that date is format as you wrote), they have also (as file) correct time and date. I want to remove EXIF data to limit data which I share with this file. Ideal situation is when there is no EXIF at all, but in such conditions Google Photos app shows that all pictures were made when they were uploaded to phone (eg. 04.05.2019 when they were made at 24.04.2019) and this makes a mess in my photos. So if I'm not wrong if I will leave only date and time it will be shown correctly in the app and no other data will be shared.
thanks,
da1k
You should be using a command something like this to clean the metadata from the files:
exiftool -all= -tagsfromfile @ -datetimeoriginal DIR
This will wipe all metadata but the EXIF DateTimeOriginal.
- Phil
Thanks for help. It looks that it works, but I get such warning:
"Warning: [minor] Unrecognized MakerNoteUnknown - c:/exiftool/2019/sample.jpg"
Command which I used is: exiftool.exe -all= -tagsfromfile @ -datetimeoriginal -r c:\exiftool\2019
What about is this warning?
regards,
da1k
FAQ 15 (https://exiftool.org/faq.html#Q15) explains all this.
- Phil
OK. Thank you. I should read FAQ first :)