Add description for the script tag_photo.sh
This commit is contained in:
parent
f2a106ee04
commit
13eed218e1
20
README.md
20
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.
|
* 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!
|
* 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.
|
* 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.
|
* test_ssl3: Test if a website supportes the SSLV3 protocol.
|
||||||
* veille.sh: Kill every sensitive process and files then lock the screen.
|
* veille.sh: Kill every sensitive process and files then lock the screen.
|
||||||
* vimmanpager: Tiny script can be used as PAGER, it will call VIM!
|
* 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, …)
|
* I can display my current task and it's timer wherever i want (tmux, herbstluftwm, …)
|
||||||
* Written to work with /bin/sh
|
* 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
|
## Test_ssl3
|
||||||
Redhat's script to test if an LDAP server support SSLv3.
|
Redhat's script to test if an LDAP server support SSLv3.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue