Closed wjhladik closed 1 year ago
Sadly, yes: https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/discussions/133#discussioncomment-4476604
gpth
currently does not write exifs back :disappointed: - do you specifically need this feature? Did use google photos date/location editing a lot? Or you have lot of photos with stripped exif?
Thing is, implementing this will be hard, and i need to know how much priority to put into this...
If you want quick solution to this, exiftool can help you: exiftool "-AllDates<FileModifyDate" /folder/
I have a ton of photos before 1970
Ah, shit. Guess i need to learn ffi
after all :/
json file which is cut short
Yep, json file names are stripped to 51 chars, and gpth does try to search for them
Me personally... I've scanned hundreds (maybe thousands) of old photos and then inside GP I applied gps location tags and descriptions and date/time fixes. I could have done all this outside GP but it is quite easy to apply these changes in bulk using the GP web interface. So I can't say whether you should spend time on it in your code or make an interface to call exiftool to do it for you or not address it at all. I'd benefit, but not sure about others.
scanned hundreds (maybe thousands) of photos
Damn... i may looking into it - would suck if you had all of this data gone...
If https://github.com/brendan-duncan/image/issues/457 gets resolved, i will add it instantly soon 😅! Otherwise, i may look into ffi'ing to exiv2 or something in some time
gpth-windoza --input \temp\temp\takeout --output \temp\temp\new\gpth --divide-to-dates --copy
Using 3.3.1. As far as I can tell not much was changed in any photo's exif data. Date Taken was not set (at least according to Windows), descriptions were not added, other json fields were not added to the photo's exif data. It did move the photos to the new directory structure under the output directory. And I have a ton of photos before 1970 so I did not even consider those (we need a solution there).
But here's some before and after data focusing on one particular photo from 1979.
Notice the name of the json file which is cut short by one character. Hopefully you are accounting for this. Here's what's in the json file including several fields I modified in Google Photos that I expected would be copied into the exif data of the output file:
Now the before and after exiftool view of the photo file in question:
Notice the Modify Date field which stayed the same at 2/9/2020, but the File Modification Date/Time which changed to what was in the json file 12/15/1979. This is what I wanted for the photo's Date Taken. Exiftool does not actually show that field as being present but when I use Windows explorer to view the directory and select Date Taken as one of the header fields it shows 2/9/2020 as the date taken. So Windows must be looking at Modify Date instead of the field gpth set. Here's a chart that explains this:
https://exiftool.org/forum/index.php/topic,6591.msg32875.html#msg32875