hatobi / bereal-gdpr-photo-toolkit

Process BeReal photos received from a GDPR-request
The Unlicense
44 stars 6 forks source link

Process more of the JSON information and include in EXIF #6

Open hatobi opened 6 months ago

hatobi commented 6 months ago

Add more of the information from memories.jsonand posts.json to converted JPEGs' EXIFs:

This information is included in my own data export so I only need to find time to expand the script to cover these tags.

U14-dev commented 6 months ago

Location looks like this:

{ "primary": { "bucket": "storage.bere.al", "height": 2000, "path": "/XXX.webp", "width": 1500 }, "secondary": { "bucket": "storage.bere.al", "height": 2000, "path": "/XXX.webp", "width": 1500 }, "retakeCounter": XXX "caption": "XXX", "location": { "latitude": XX.XX, "longitude": XX.XX }, "visibility": [ "friends" ], "takenAt": "XXX" },

hatobi commented 6 months ago

Thanks for posting the extended structure, @U14-dev! To be sure I can properly convert/transfer the coordinates, could you check which coordinate system and format they follow? Easiest would be to compare the structure in your file to the coordinate systems and structures on a site like coordinates-converter.com. I only need the name of the coordinate system, not the actual coordinates, then I can use my own coordinates for testing purposes.

U14-dev commented 6 months ago

They are using decimal degree, you could use http://maps.google.com/maps?z=12&t=m&q=loc:var_LAT+var_LONG to check on google maps

hatobi commented 6 months ago

Added the BeReal-caption as IPTC caption/abstract, still not sure where to put the other information.