![]() ![]() If you wait a few minutes, the Applescript times out.ĭespite all of that, though, some dupes still slip through. I recommend "Don't import" for dupes that Photos detects, which skips a bunch of dupes we don't catch, but also means that every time you rerun the script you have to go through dialog after dialog saying "do not import" (space to check the "apply to all", click don't import it's decent enough). The script is "intelligent" and augments its output.json with the results from previous runs, so we don't try to reimport most imported images, but we have to rely on heuristics to understand what image actually corresponds to the imported media item ID (we just get a list of imports, not a map of input to result), so we end up missing a few. ![]() I'm going by heuristics like file name, size, and timestamp, all of which suck: Google Photos loves to rename photos (though I correct for some of that, like name truncation), I found that older Live Photo videos got re-encoded, and timestamp is not reliable at all for my DSLR photos, perhaps because I'm not correcting for time zone properly. I could not find a fast way to export photos from Photos to actually compare using imagemagick (which would be extremely slow anyway, at least to do NxN matching maybe I could have generated a hash map or something.). Dupe detection is badįurthermore, dupe detection is just abysmal. In the end, I had to restart the tool several times and add "skip" ( -s) flags to skip the most troublesome (read: large) albums that would stall out the import. I believe I mitigated this issue by dramatically improving the Live Photo detection, but I think I was running into sporadic errors after (though. However, if you import a Live Photo photo in one chunk and a Live Photo video in another, the first item will go away-the media item ID the first import generates will just fail to find anything. The Photos app gets confused if you try to import to much stuff (by size?) at once, so at one point I "chunked" the imports. The results were decent but extremely unreliable. # You can inspect media items (launch them in Photos): Npm run go - output.json -s "Photos from 2014" "Study Abroad: North Trip" # Or skip albums that are causing problems: ![]() Npm run go - output.json -a "Photos from 2020" Npm run go - path/to/takeout -a "Photos from 2020" # Import, based on the output from parsing: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |