Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --auto-live to osxphotos import #1399

Closed
RhetTbull opened this issue Jan 25, 2024 · 0 comments
Closed

Add --auto-live to osxphotos import #1399

RhetTbull opened this issue Jan 25, 2024 · 0 comments
Labels
cli Pertains to the command line interface feature request New feature or request

Comments

@RhetTbull
Copy link
Owner

Reference below discussion. For importing live photos from Android, it would be helpful to automatically add the ContentIdentifier tags.

@Yorian, @oPromessa is right that there's a tag that needs to be in the image and video to be associated as a Live Photo. I've not done extensive testing but it appears to require the "Content Identifier" tag which is MakerNotes:ContentIndentifer in the HEIC or JPG and QuickTime:ContentIdentifier in the video file. The value is a universally unique identifier (UUID) that must match for Photos to correlate the two. The UUID looks like: 4636F170-F379-42AC-9CEA-20233E95936F (but each value is unique to the photo/video pair). You can set this via exiftool using exiftool -ContentIdentifier="4636F170-F379-42AC-9CEA-20233E95936F" IMG_1234.jpg IMG_1234.mov I've tested this with both HEIC and JPG + MOV and when you drag the two images into Photos they are matched as a live photo pair. osxphotos import can also be used to import them.

You can produce a UUID using this python one-liner: python -c "import uuid; print(str(uuid.uuid4()).upper())" which will print out a unique UUID in the correct format. If you have any scripting skills, you could write a script to find matching JPG+MOV files, generate the UUID, and apply the tag using exiftool.

It might be a useful feature for osxphotos import to add ability to do this automatically. Perhaps osxphotos import --auto-live and let osxphotos take care of tagging the images.

Originally posted by @RhetTbull in #1398 (reply in thread)

@RhetTbull RhetTbull added feature request New feature or request cli Pertains to the command line interface labels Jan 25, 2024
RhetTbull added a commit that referenced this issue Apr 28, 2024
RhetTbull added a commit that referenced this issue Jun 8, 2024
* Working on import fixes

* Working on --check

* More work on import check

* Got import check working

* Initial refactor of --check-not

* Working on import code

* Tests passing for import

* Fixed reporting for import

* Fixes #1470, apply sidecar to _edited photos, adds --edited-suffix

* Implements #1373, --favorite-rating

* Updated docs

* Implemented --auto-live, #1399

* Normalizes unicode for album names, #1475

* Added height, width to PhotoInfoFromFile

* Updated test names

* Adds --signature to import, #1374

* Fix test for linux

* Implements PR #1486

* Allow import to accept files or directories as argument

* Fixed error with files_or_dirs

* Added export_directory table

* ExportDB updates to allow reading last export path

* Added --runs to exportdb, updated exportdb tests

* Added photoinfo_from_dict

* Added photoinfo_from_dict tests

* Added --exportdb to import

* Stage files that need modification, added tests

* Refactoring for maintainability

* Refactoring for maintainability

* Refactoring for maintainability

* Changed verbose level

* Fix for files with same stemp when --auto-live is not used

* Handled edited version w/o AAE

* removed print statemetns

* Updated check, check not

* Added tests for importing edited versions

* Refactored to move import_cli code first in file

* Working on _edited photos

* Import of edited files now working

* Updated content_tree to fallback to mdls if needed

* Fixed image_file_utils for non-Spotlight volumes

* Fixed image_file_utils for non-Spotlight volumes

* Removed unneeded imports

* Tests passing for renamed edited photos

* Initial tests for import CLI utils

* Initial tests for import CLI utils

* Fixed regex for finding original / edited images

* Typo (my bad!) on GoPro Pics filename standards. (#1551)

* Added test images for import tests

* Fix for edited live photos

* Fixed skip if not macOS

* Added test for edited live photo

* Added clarification for --resume, --skip-dups, #802

* Fix for certain edited live photos

* Reset counter

* Added --exportdir

* Fixed help formatting

---------

Co-authored-by: oPromessa <mario@silvapereira.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Pertains to the command line interface feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant