Skip to content

Option to strip Motion Photo metadata before upload #114

@der8en

Description

@der8en

I am using the lrc-immich-plugin as a Publish Service to upload my photos (formatted as JXL and also other typs). However, I've run into an issue regarding the metadata of Motion Photos (Live Photos).

When Lightroom renders the exported files, it sometimes fails to properly adjust or remove the motion-related metadata. Because of this, the rendered image still contains tags pointing to a motion payload, even though the actual video data might be altered, missing, or incompatible after the conversion.

The Impact on Immich:
When the plugin uploads these files, Immich reads the faulty metadata and gets confused:

  1. Immich fails to generate a proper thumbnail for the image.
  2. The UI incorrectly displays the "Motion" play button, even though the photo no longer contains a valid motion payload.

Proposed Solution:
It would be incredibly helpful if the plugin provided a way to clean up specific metadata after Lightroom renders the file, but before the upload to the Immich API is triggered.

There are two potential ways to implement this:

  1. (Custom Command Hook): Add a text field in the plugin's export settings where users can define a custom command (e.g., using ExifTool) to run on the temporary rendered file before upload. Example: exiftool -Trailer:all= -"MicroVideo=" -"MotionPhoto=" -overwrite_original {FILE}
  2. (Built-in Checkbox): A simple toggle in the settings called "Strip Motion Photo Metadata" that internally runs the necessary cleanup on the rendered file.

Adding a pre-upload hook or cleanup option directly within the Immich plugin would make the publish process much more robust for users dealing with Motion Photos.
Thank you for considering this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions