New osxphotos import
command
#764
RhetTbull
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
@RhetTbull Thank you for nice feature, but for it's does not work, i don't know why. There log
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've added a new
import
command to osxphotos in v0.51.0 so it can be used to import photos and videos into Photos. It uses the same template system thatexport
uses so you can use a template to specify the album(s), the metadata, etc.For example:
Import files into Photos and add to album named for month of the year in folder named for the 4-digit year of
the file creation date:
osxphotos import /Volumes/photos/*.jpg --album "{created.year}/{created.month}" --split-folder "/"
Import files and use the parent folder as the album:
osxphotos import /Volumes/photos/Madrid/*.jpg --album "{filepath.parent.name}"
adds all photos to the album "Madrid" (the name of the file's parent folder).
import photos and use exiftool to set metadata from the imported file
osxphotos import /Volumes/photos/* --exiftool
Import all photos in
/Volumes/Photos
and all subdirectories, use the filepath of the imported photo to automatically create folders and albums (but exclude the parent folder of/Volumes/Photos
from the imported filepath:osxphotos import /Volumes/Photos/* --walk --album "{filepath}" --relative-to "/Volumes/Photos" --split-folders "/"
Use
osxphotos help import
Beta Was this translation helpful? Give feedback.
All reactions