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
Created March 18, 2025 21:17
A PowerShell script to convert JSON files generated by Google Photos Takeout to XMP sidecar files to be used in Immich (with external libraries)
<#
.SYNOPSIS
Converts Google Photos Takeout JSON files to XMP sidecar files for Immich,
letting the user pick the root folder from a file picker.
.DESCRIPTION
- Prompts the user for a folder containing photos & JSON via a FolderBrowserDialog.
- Logs only 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.