Add description for the script tag_photo.sh

This commit is contained in:
Jeremy Gardais 2016-10-05 16:59:01 +02:00
parent f2a106ee04
commit 13eed218e1
1 changed files with 20 additions and 0 deletions

View File

@ -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.