Can anyone recommend a tool to manage photos at the cmdline? I just want to move photos into dirs based on their metadata (YYYY/DD), occasionally fix up metadata (adjust dates), rename photo filenames to match a template and/or query my photos for certain things. It doesn’t need to be a gallery or image touch-up tool, I have other things for that.
I’m aware of exiftool and ImageMagick, perhaps they can do the job but they seem quite low level, really need to build scripts around them - I’d like something that operates at a slightly higher level so I don’t have to do too much scripting.
A quick search turned up chee (GPLv3) which can:
- search photos using a simple query language
- manage named queries (called collections)
- copy/symlink images into a custom folder structure
…but it’s not had an update in a few years (maybe it’s feature complete tho!) Any other suggestions? Thanks.
Not for Photos specific but F2 seems to fit some of your use cases. https://github.com/ayoisaiah/f2
Even can use Exif fields as variables in the naming scheme. https://github.com/ayoisaiah/f2/wiki/Built-in-variables#3-exif-variables
That looks a very useful tool, thanks. I think it could be just the thing for bulk renaming photos to standard names.
i recently saw https://codeberg.org/ralfhersel/fotomat via the German news article https://gnulinux.ch/fotomat
Thank you for this. I think this has some of the operations I need, I will dig into the code.
There’s a lib/tool called exiftool iirc. It can be used from the commandline.