Updated README.md

This commit is contained in:
Rhet Turnbull
2020-01-20 08:02:03 -08:00
parent d1afd55a7c
commit 0aff83ff21

View File

@@ -84,7 +84,10 @@ Usage: osxphotos export [OPTIONS] [PHOTOS_LIBRARY]... DEST
photos will be exported. photos will be exported.
Options: Options:
--db <Photos database path> Specify Photos database path. --db <Photos database path> Specify Photos database path. Path to Photos
library/database can be specified using
either --db or directly as PHOTOS_LIBRARY
positional argument.
--keyword TEXT Search for keyword(s). --keyword TEXT Search for keyword(s).
--person TEXT Search for person(s). --person TEXT Search for person(s).
--album TEXT Search for album(s). --album TEXT Search for album(s).
@@ -93,34 +96,48 @@ Options:
--no-title Search for photos with no title. --no-title Search for photos with no title.
--description TEXT Search for TEXT in description of photo. --description TEXT Search for TEXT in description of photo.
--no-description Search for photos with no description. --no-description Search for photos with no description.
--uti TEXT Search for photos whose uniform type identifier --uti TEXT Search for photos whose uniform type
(UTI) matches TEXT identifier (UTI) matches TEXT
-i, --ignore-case Case insensitive search for title or -i, --ignore-case Case insensitive search for title or
description. Does not apply to keyword, person, description. Does not apply to keyword,
or album. person, or album.
--edited Search for photos that have been edited. --edited Search for photos that have been edited.
--external-edit Search for photos edited in external editor. --external-edit Search for photos edited in external editor.
--favorite Search for photos marked favorite. --favorite Search for photos marked favorite.
--not-favorite Search for photos not marked favorite. --not-favorite Search for photos not marked favorite.
--hidden Search for photos marked hidden. --hidden Search for photos marked hidden.
--not-hidden Search for photos not marked hidden. --not-hidden Search for photos not marked hidden.
--burst Search for photos that were taken in a burst.
--not-burst Search for photos that are not part of a burst.
--live Search for Apple live photos
--not-live Search for photos that are not Apple live
photos
--shared Search for photos in shared iCloud album --shared Search for photos in shared iCloud album
(Photos 5 only). (Photos 5 only).
--not-shared Search for photos not in shared iCloud album --not-shared Search for photos not in shared iCloud album
(Photos 5 only). (Photos 5 only).
--burst Search for photos that were taken in a
burst.
--not-burst Search for photos that are not part of a
burst.
--live Search for Apple live photos
--not-live Search for photos that are not Apple live
photos
--only-movies Search only for movies (default searches
both images and movies).
--only-photos Search only for photos/images (default
searches both images and movies).
--from-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Search by start item date, e.g.
2000-01-12T12:00:00 or 2000-12-31 (ISO 8601
w/o TZ).
--to-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Search by end item date, e.g.
2000-01-12T12:00:00 or 2000-12-31 (ISO 8601
w/o TZ).
-V, --verbose Print verbose output. -V, --verbose Print verbose output.
--overwrite Overwrite existing files. Default behavior is --overwrite Overwrite existing files. Default behavior
to add (1), (2), etc to filename if file is to add (1), (2), etc to filename if file
already exists. Use this with caution as it may already exists. Use this with caution as it
create name collisions on export. (e.g. if two may create name collisions on export. (e.g.
files happen to have the same name) if two files happen to have the same name)
--export-by-date Automatically create output folders to organize --export-by-date Automatically create output folders to
photos by date created (e.g. organize photos by date created (e.g.
DEST/2019/12/20/photoname.jpg). DEST/2019/12/20/photoname.jpg).
--export-edited Also export edited version of photo if an --export-edited Also export edited version of photo if an
edited version exists. Edited photo will be edited version exists. Edited photo will be
@@ -133,10 +150,10 @@ Options:
extension. extension.
--original-name Use photo's original filename instead of --original-name Use photo's original filename instead of
current filename for export. current filename for export.
--sidecar Create JSON sidecar for each photo exported in --sidecar Create JSON sidecar for each photo exported
format useable by exiftool in format useable by exiftool
(https://exiftool.org/) The sidecar file can be (https://exiftool.org/) The sidecar file can
used to apply metadata to the file with be used to apply metadata to the file with
exiftool, for example: "exiftool exiftool, for example: "exiftool
-j=photoname.jpg.json photoname.jpg" The -j=photoname.jpg.json photoname.jpg" The
sidecar file is named in format sidecar file is named in format
@@ -144,18 +161,15 @@ Options:
the photo (e.g. jpg). Note: this does not the photo (e.g. jpg). Note: this does not
create an XMP sidecar as used by Lightroom, create an XMP sidecar as used by Lightroom,
etc. etc.
--only-movies Search only for movies (default searches both --download-missing Attempt to download missing photos from
images and movies). iCloud. The current implementation uses
--only-photos Search only for photos/images (default searches Applescript to interact with Photos to
both images and movies). export the photo which will force Photos to
--download-missing Attempt to download missing photos from iCloud. download from iCloud if the photo does not
The current implementation uses Applescript to exist on disk. This will be slow and will
interact with Photos to export the photo which require internet connection. This obviously
will force Photos to download from iCloud if only works if the Photos library is synched
the photo does not exist on disk. This will be to iCloud.
slow and will require internet connection. This
obviously only works if the Photos library is
synched to iCloud.
-h, --help Show this message and exit. -h, --help Show this message and exit.
``` ```