shibao
e77854b6b5
add bashrc ignore xauthority add autounlocking keepass desktop entry add fonts for waybar add alacritty config move scripts location and adjust bashrc use materia theme sway and lockscreen add list packages script add ranger desktop item add mpd config add indicator ring to swaylock remove mpd password add global asdf tool versions add mako config update keys add swaylock theme add suspend to lock config move ssh commands to aliases tweak mpd section in waybar add kanshi config for work update bashrc
31 lines
679 B
Bash
Executable File
31 lines
679 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# rename .JPG -> .jpg
|
|
count=`ls -1 *.JPG 2>/dev/null | wc -l`
|
|
if [ $count != 0 ]; then
|
|
rename JPG jpg *.JPG
|
|
fi
|
|
|
|
# remove exif except orientation from .jpg
|
|
count=`ls -1 *.jpg 2>/dev/null | wc -l`
|
|
if [ $count != 0 ]; then
|
|
for i in *.jpg; do
|
|
exiftool -all= -overwrite_original -tagsfromfile @ -Orientation "$i"
|
|
done
|
|
fi
|
|
|
|
# rename .PNG -> .png
|
|
count=`ls -1 *.PNG 2>/dev/null | wc -l`
|
|
if [ $count != 0 ]; then
|
|
rename PNG png *.PNG
|
|
fi
|
|
|
|
# remove exif except orientation from .png
|
|
count=`ls -1 *.png 2>/dev/null | wc -l`
|
|
if [ $count != 0 ]; then
|
|
for i in *.png; do
|
|
exiftool -all= -overwrite_original -tagsfromfile @ -Orientation "$i"
|
|
done
|
|
fi
|
|
|