GooglePhotosTakeoutHelper icon indicating copy to clipboard operation
GooglePhotosTakeoutHelper copied to clipboard

gpth doesn't re-insert data from jsons to exif

Open wicked-head opened this issue 1 year ago • 9 comments

Hi, first let me thank you for your dedication and sharing this tool to the world!

I performed a test by manually removing some tags from the file even if the information was already in the json file and it did not did copy everything. Example: Step 1) Right click on image -> Properties -> Details -> Remove Properties and Personal Information -> deleted "Date Taken", "GPS information", Title, "subject" Step 2) ran the gpth-windoza.exe with admin rights Step 3) target photo only changed the "Last Modified Date" is now same date as in the JSON "photoTakenTime" tag. But it is Missing: "Date Taken", "GPS" information (Lat, Long, Alt), Title and Description tags could also be copied. This information is present on the JSON file but was not on the original file metadata as part of my test, and my expectation was that (at least) the GPS information would been enriched by your program.

Additionally, shouldnt it also change the "Date Created" tag? or is that not accessible to overwrite?

Is it something that could be easily done as you already have the framework to do it?

Thanks for all the good work :)

wicked-head avatar Apr 10 '23 15:04 wicked-head

Hi! Nice of you to help with testing!

I tried times and times to find nice exif library/solution for Dart, but it seems very difficult, so gpth currently doesn't modify image metadata at all

See discussion here: https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/discussions/191

If you want this very much, please write there se we can discuss <3

TheLastGimbus avatar Apr 10 '23 16:04 TheLastGimbus

Hey! Thanks for your awesome tool. In the readme, in TODO section there is an info about moving GPS data from json to exif which states that this is working for python version. So could you tell me, do I need to use the 2.x release in order to propely move GPS data to exif? If yes, is it possible to re-run the python version on top of already alredy parsed data by most recent version?

I've downloaded, extracted and run the newest version of your toole. I have now input folder with all Json files, and output folder, nicely arranged by dates, but without json files. Am I able to somehow run the 2.x version to apply the exif data on photos?

bartaspoz avatar Jun 19 '23 10:06 bartaspoz

is it possible to re-run the python version on top of already alredy parsed data by

I don't think so, and I don't recommend touching python version at all - it was a mess, and I can't tell you for sure what will happen

I think the fastest would be to write a new 20-line python script that would do that - tho it wouldn't have any advanced json matching like whole gpth has

...or, I could add experimental feature to gpth to generate a exiftool-based bash script to set all of those locations

what do you think?

TheLastGimbus avatar Jun 21 '23 08:06 TheLastGimbus

Hi, any way of preserving gps data would be a gamechanger. I use photos location history constantly, as I travel a lot and like to re-visit places by searching for them on the map. My idea is to import Goole Takeout to Synology Photos, where the map feature is present as well.

So I tkink your last idea is the one that I like the most :) I would love to help you, but I'm not a programmer.

bartaspoz avatar Jun 22 '23 22:06 bartaspoz

Wait, but... as I tried to reaserch, as in #191 , GPhotos doesn't strip exifs - I don't remember any precisely observed case of this - so, did you actaully check if your photos in your takeout have exifs? (Exif is metadata format that contains the location info). If they do have it, you don't need to re-merge that fom jsons...

If all of your photos have this stripped, then i want to investigate this very intense - did you have an iphone, or did most of your photos did not have gps data from camera, but you manually edited that in gphotos app? @bartaspoz

TheLastGimbus avatar Jun 23 '23 08:06 TheLastGimbus

Hi. Thanks for your software.

I'm exporting ~0,5Tb of photos / videos. There are thousands of photos with missing geolocation (checked at Google Photos) and without date after processing with gpth. From where should I start to trace reasons why there is no such metadata?

alexander-myltsev avatar Jul 14 '24 04:07 alexander-myltsev

@alexander-myltsev did your camera even collect it? is it visible in the app? did you change it manually? etc etc

TheLastGimbus avatar Jul 14 '24 18:07 TheLastGimbus

did your camera even collect it? is it visible in the app?

Both yes. There is that metadata in Google Photos.

did you change it manually? etc etc

Definitely no.

alexander-myltsev avatar Jul 15 '24 11:07 alexander-myltsev