How alexdachin/gophix works
Main Components
a) Input Layer:
• Google Photos Takeout folder structure
• Both media files (photos/videos) and their associated JSON metadata files
b) Core Processing Components:
• Command Handler (for 'fix' and 'clean-json' commands)
• File Processing Pipeline
• Extension Management System
• Metadata Processing System
c) External Dependencies:
• ExifTool integration (show as an external system)
Component Organization
┌─ Input Layer ─────────────────────┐
• Takeout Directory Structure │
• Media Files (.jpg, .png, etc) │
• JSON Metadata Files │
• ┬───────────────────┘
• ↓
┌─ Core Processing ─────────────────┐
• ┌─ Command Handler ──────┐ │
• fix │ │
• clean-json │ │
• ┬────────────┘ │
• ↓ │
• ┌─ Processing Pipeline ─┐ │
• ┌─ Files Utils ────┐ │ │
• Classification │ │ │
• JSON Handling │ │ │
• ┘ │ │
• ┌─ Extensions ────┐ │ │
• Format Check │ │ │
• Extension Fix │ │ │
• ┘ │ │
• ┌─ Metadata ──────┐ │ │
• Extraction │ │ │
• Merging │ │ │
• ┘ │ │
• ┬──────────┘ │
• ┬───────────────────┘
• ↓
┌─ External Tools ─────────────────┐
• ExifTool │
• ┬───────────────────┘
• ↓
┌─ Output Layer ──────────────────┐
• Fixed Media Files │
• XMP Sidecar Files (if needed) │
• Cleaned JSON Files │
• ┘
Important Flows to Highlight
• File reading flow from input directory
• Processing pipeline sequence
• Metadata merging process
• Output file generation
Additional Details
Annotations for:
• Supported file formats
• JSON metadata structure
• Command-line interface options
• Error handling strategies