diff --git a/README.md b/README.md index 2c0e29d..9eacfeb 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Some useful scripts (for me) that can be added to $PATH :) * num_circle: Transform a number into a digit with a circle. * pomodoro: Print a task and a timer in a file. Try to apply Pomodoro Technique! * snapsend.sh: Send a ZFS snapshot to a remote host. +* tag_photo.sh : Add an exif tag to images. * test_ssl3: Test if a website supportes the SSLV3 protocol. * veille.sh: Kill every sensitive process and files then lock the screen. * vimmanpager: Tiny script can be used as PAGER, it will call VIM! @@ -88,6 +89,25 @@ Then the script will: * I can display my current task and it's timer wherever i want (tmux, herbstluftwm, …) * Written to work with /bin/sh +## tag_photo.sh +The main goal is to have a solution to know the "subject" of a picture without to open it and no really good name. It can happen if you delete your pictures and get it back with `photorec` or `foremost`. For this i use the Exif metadata. + +You can simply launch the script with your pictures directory : + +``` sh +tag_photo.sh /tmp/Images +``` + +Then the script will : +* List all subdirectories. +* Get the basename of each directory and add it as the value of the Exif "description" tag for each images. + +To see the result, you can display the tags "File Name" and "Description" of you images : + +```sh +find /tmp/Images -type f -iregex '.*\.\(jpg\|gif\|png\|jpeg\)$' -exec exiftool {} -FileName -Description \; +``` + ## Test_ssl3 Redhat's script to test if an LDAP server support SSLv3.