Skip to content

Find all unique photos in a directory and link into a directory by creation date. Also hardlinks duplicates

Notifications You must be signed in to change notification settings

wscott/link_photos_bydate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

link_photos_bydate

Find all unique photos in a directory and link into a directory by creation date. Also hardlinks duplicate photos inplace so that duplicates in existing collections will be collapsed together.

Usage

link_photos_bydate.pl ....

Walks all picture files in the directories on the command line looking for pictures. Any pictures found are opened and the EXIF data is read. The original date the picture was taken is found and the files is linked to:

YYYY/YYYY-MM-DD/YYYY-MM-DD_hhmmss.jpg

in the current directory. If multiple pictures are found that were taken in the same second then the files are examined to see if they are in fact identical. If not then _ is added before the file extension. If a duplicate is found, then that duplicate is hardlinked to the same file so save disk space.

Files without dates in the metadata are ignored.

About

Find all unique photos in a directory and link into a directory by creation date. Also hardlinks duplicates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages