@lukekarrys/organize-photos
v1.3.3
Published
Organize my photos and videos.
Downloads
11
Readme
organize-photos
Organize my photos and videos.
Install
CLI
npm install @lukekarrys/organize-photos -g
Module
npm install @lukekarrys/organize-photos --save
What does this do?
- Takes a
src
dir and copies everything to adest
dir - Every file copied is cleaned up with the following
- Lowercase file extension
- Removes trailing
#5
and(3)
from filenames
- If a file is not a recognized type it is moved to
dest/UNKNOWN
- If a file has no date associated, it is moved to
dest/UNSORTED
- If a file does have a date, it is moved to
dest/yyyy/mm/dd/yyyy-mm-dd hh:mm:ss.ext
- Dates are found by the following
- exif
CreateDate
field - Any other exif fields passed in with
exifDate
- Some special filenames like screenshots or photobooth files
- If the file is named like
yyyy-mm-dd hh?:mm?:ss?
- A parent directory that is named like
yyyy-mm-dd hh?:mm?:ss?
- exif
- If no exif dates are found, but a date is found from the path, that will be written to exif data
- Files are never clobbered but instead
a-z
is appended to the destination until there are no conflicts - By default, everything is a dry run (can be changed with
real
) - By default,
dest
is never cleared but always added to (can be changed withclean
) - Can optionally
move
all the files instead
LICENSE
MIT