Skip to content

Instantly share code, notes, and snippets.

View Maksim-us's full-sized avatar

Max Maksim-us

View GitHub Profile
@Maksim-us
Maksim-us / JSONtoXMP.ps1
Last active April 30, 2025 22:21
A PowerShell script to convert JSON files generated by Google Photos Takeout to XMP sidecar files to be used in Immich (with external libraries)
<#
.DESCRIPTION
Converts Google Photos Takeout JSON files to XMP sidecar files for Immich
- Prompts for a folder containing photos & JSON via a FolderBrowserDialog
- Logs errors/exceptions to JSONroXMP.log (in the same directory as this script)
- Prompts once to overwrite or skip existing XMP files
- Replaces placeholders in the XMP template with actual values from the JSON
.NOTES
Author: Maksim-us