|
Hi, I'm trying to do some black magic... I absolutely hate Tahoe, so I created a new volume and reinstalled Sequoia. Moving back my picture library is the last bit of the rollback process. It's insane how well documented osxphotos is, but I'm still not sure if I'm doing something wrong. Any help would be appreciated. I did the following on Tahoe (26.2):
Then I did this on Sequoia (15.7.3):
The image dates are perfect, but the images are missing favorites / hidden / album metadata. Maybe even person metadata, but I'm not sure if I care about that all that much. So, I realized I don't really need --exiftool and --touch-file, because I don't care about the "temporary migration files" having the correct metadata, I just want the metadata to be correct within the photos app. Reading some more through the docs, I deleted the entire Sequoia library, and tried again with:
Hoping that would restore the favorites / hidden / album metadata - but I saw half way how images that should be in albums, were not, nor were there any favorite tags applied, so I stopped the import half way. To note, I also checked that the album metadata is actually saved in the export db, and sure enough, the one image I inspected:
Shows correct album / favorite metadata. Does anyone know what I'm missing? |
Replies: 1 comment 39 replies
|
You'll need a few more options to recreate the library. Export then re-import is a use case I'm actively working on but it still isn't perfect. See this thread for a discussion of what others are doing. At a minimum, I suggest export with the following: osxphotos export img/ --export-by-date --sidecar xmp --update --export-aae --verbose --keyword-template "{photo.hidden?hidden,}"Then import with the following: Exporting the AAE files with Importing wiht The people / face regions in the photo cannot be recreated (this is a limitation of Photos). Additionally, hidden photos are not re-hidden. Favorite status, locations, albums, folders, keywords, captions, titles will all be re-created. Any hidden photos will get the keyword "hidden" applied. You can then use a Smart Album to find these and re-hide them following import. Note that the import command uses Photos' AppleScript interface to interact with Photos. The AppleScript interface is buggy and there's nothing OSXPhotos can do to fix this. That means sometimes Photos hangs or crashes during import. OSXPhotos will try to re-start Photos. I will be releasing a new version in the next day or so that will include improved error handling for this so you might want to wait until version 0.75.0 is released this week to do the import. |
Just to confirm, I'm supposed to go through the full export / import process with the latest version?
osxphotos export img/ --export-by-date --sidecar xmp --update --export-aae --verbose --keyword-template "{photo.hidden?hidden,}"osxphotos import img/* --walk --exportdb img/.osxphotos_export.db --sidecar --verbose --exportdir /Users/agent/Pictures/imgOh, I just started the import and I got favorites right away! Waiting for it to finish so I can make a proper comparison against the original library.
Edit: Confirmed, this are the final commands that export and are able to import favorite / hidden / album metadata. (Hidden is not actually hidden but just adds a hidden keyword - searchable …