Skip to content

Instantly share code, notes, and snippets.

View LeCollevillais's full-sized avatar

LeCollevillais

  • Joined Jun 9, 2025
View GitHub Profile
@rpanachi
rpanachi / fix_metadata.rb
Created March 17, 2025 00:17
Google Photos metadata fixer script
require 'FileUtils'
require 'json'
class GooglePhotosFixer
METADATA_JSON = "supplemental-metadata.json"
SUPPORTED_IMAGE_EXT = %w(.jpg .jpeg .png .gif .webp .heic .mov .mp4 .3gp .avi .mkv .webm)
attr_reader :fixes, :errors, :takeout_dir
def initialize(takeout_dir)