29 karma · joined May 9, 2021 (5y ago) · 14 submissions
comment 10mo ago · link · parent
My free open source tool osxphotos [1] does this. In addition to an "osxphotos export" command to create archival exports with all metadata, it also has an "osxphotos import" command that can restore all metadata including albums (with exception of named persons/face regions, though persons can be converted into keywords on import). It can also read XMP sidecar files to restore metadata from those. It's a CLI and definitely a power user tool.
It also includes an "osxphotos sync" command that can sync metadata between two libraries. Some people use this to sync metadata like favorites from iPhone library to the Mac library. (can't go the other way unfortunately)
comment 2y ago · link · parent
[0]: https://github.com/RhetTbull/textinator
[1]: https://developer.apple.com/documentation/vision?language=ob...
[2]: https://support.apple.com/guide/preview/interact-with-text-i...
comment 2y ago · link · parent
comment 2y ago · link · parent
The open source tool osxphotos (https://github.com/RhetTbull/osxphotos) can help with this. You can export the JPEG images while preserving metadata using the thrid-party exiftool utility:
`osxphotos export /path/to/export --has-raw --skip-raw --exiftool`
This exports all images that have a raw pair but skips the raw component then uses exiftool (https://exiftool.org/) to write the metadata (keywords, etc.) to the exported JPEG files. You can then re-import these into photos either by dragging them or by running `osxphotos import /path/to/export/*`
Both the export and import commands have many other options for controlling export directory, etc. `osxphotos help export` or `osxphotos docs` to open docs in browser. (Disclaimer: I'm the author of osxphotos)
comment 2y ago · link · parent
osxphotos query --min-size 100MB --add-to-album "Big Files"
Finds all photos, videos > 100MB and adds them to the album "Big files"
`osxphotos query --help` for more info or `osxphotos docs` to open docs in the browser.
Disclaimer: I'm the author.
comment 3y ago · link · parent
For example, to find your "best" photos based on overall aesthetic score and add them to the album "Best Photos" you could run:
osxphotos query --query-eval "photo.score.overall > 0.8" --add-to-album "Best Photos"
To find good photos with trees in them you could try something like:
osxphotos query --query-eval "photo.score.overall > 0.5" --label Tree --add-to-album "Good Tree Photos"
There's quite a bit of other interesting data in Photos that you can explore with osxphotos. Run `osxphotos inspect` and it will show you all the metadata for whichever photo is currently selected in the Photos app.
[0] https://github.com/RhetTbull/osxphotos [1] https://rhettbull.github.io/osxphotos/
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
A macOS command-line "multi-tool" for working with Apple Photos. Allows you to export photos (along with all the metadata), batch-edit metadata such as times and timezones, explore the AI metadata Apple computes for each photo (but doesn't make available to the user) such as "well timed shot", "pleasant composition", etc, compare libraries, sync metadata between libraries, and much more! It's written in python and provides a full python API for interacting with Photos.
14.
Twitter bot that plays the original Adventure game(twitter.com ↗)
2 points · by rhettbull · 5y ago · discuss