Skip to content

Instantly share code, notes, and snippets.

View Chalkin's full-sized avatar

Patrick Chalkin

  • Munich & Remote around the world
View GitHub Profile
@Chalkin
Chalkin / embed_metadata.py
Last active July 14, 2025 11:59
Embedding meta data to Photos use after Google Photos Takeout
"""
Google Photos EXIF Metadata Embedding Tool - Use it after using Google Photos Takeout
This command line python script processes image files (JPG, JPEG, HEIC) and their corresponding
Google Photos JSON metadata files to embed GPS coordinates and photo taken
time into the image's EXIF data.
Features:
- Reads 'photoTakenTime', 'geoDataExif', and 'geoData' from Google Photos JSONs.
- Supports various Google Photos JSON naming patterns (e.g., 'image.jpg.json', 'image(1).jpg.json').
sections:
-
type: simple_content
bg_type: bg_gray
description: vuejs
text_alignment: left
image_position: right
-
type: extended_content
body:
{{ sections }}
...
{{ if type == 'extended_content' }}
<div class="section-empty">
<div class="container content">
{{ if type == "text" }}
<div class="text">
{{ text }}
</div>
sections:
main:
display: Main
fields:
sections:
type: replicator
display: Sections
sets:
logo_slider:
display: 'Logo Slider'