Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sorting in folders based on EXIF data #265

Unanswered
telometto asked this question in Q&A
Discussion options

Does anyone know if it is possible to create folders based on EXIF data? I'd like to sort them in the following order: year > month > day.

# organize configuration file
# https://organize.readthedocs.io
aud_ext: &aud
 - bmp
 - cr2
 - gif
 - heic
 - jpeg
 - jpg
 - mrk
 - njb
 - png
 - webp
rules:
 - name: "Organize pictures by EXIF"
 locations:
 - path: "/mnt/pictures/"
 subfolders: true
 filters:
 - exif
 - name
 - extension: *aud
 actions:
 - echo: "{path}"
 - move: "/mnt/pictures/{exif.strftime('%Y')}/{exif.strftime('%m')}/{exif.strftime('%d')}/{extension.lower()}/{name | replace(' ', '_') | lower()}.{extension.lower()}"
You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

I'm also interested. Tried a few things but nothing worked out. Someone any clues?

You must be logged in to vote
0 replies
Comment options

@telometto I found something else if you are interested.
https://exiftool.org/ does exactly what I was looking for.
YEAR/MONTH sorting by the createdate EXIF data

The commands are a bit more complicated but well documented and the forum is very active in case you need some help ! Your case seems a bit more complicated than mine but this was my workflow:

  • Remove duplicate and files other than images/mov (organize)
  • Organize my images/mov in the desired folder structure YYYY/MM (EXIFtool)

exiftool -api QuickTimeUTC -r -d %Y/%B "-filename<${CreateDate}/%f%-c.%e" .

And everything was sorted out in minutes ! Great tool!

Good luck !

You must be logged in to vote
1 reply
Comment options

Wow! I have heard about this tool before, but I didn't think it was this powerful. Thanks a lot! 😊

Comment options

#116 (comment) something like this can work.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /