This script sort images by DateTimeOriginal (shoot date) with renaming files. For example you have "DSC04586.jpg" file and output it as YYYY:MM:DD-HH:MM:SS - "2024:05:08-17:45:19.jpg".
For shell:
nix-shell -p exiftool
Or for system:
environment.systemPackages = [
pkgs.exiftool
];
sudo dnf install perl-Image-ExifTool
sudo pacman -Syu perl-image-exiftool
Copy script to folder with your images (make backups!). Add permisions for running:
chmod +x photo_sorter.sh
And run in photo folder:
bash photo_sorter.sh