This commit is contained in:
ManjaroOne666 2019-04-10 19:22:55 +01:00
parent e0c1c35237
commit 8d1ab2964d
1 changed files with 10 additions and 0 deletions

View File

@ -43,3 +43,13 @@ alias hmb.isnet='ssh -p666 hmb.isnet.uk -t tmux'
alias kvm.isnet='ssh -p666 kvm.isnet.uk -t tmux'
alias ubuntu666='ssh ubuntu666 -t tmux'
alias debian666='ssh 192.168.0.101 -t tmux'
alias alarmpi='ssh 192.168.0.11 -t tmux'
# functions
# $1 - output directory
# $2 - size
# $3 - filename
smartresize() {
mogrify -path "$3" -filter Triangle -define filter:support=2 -thumbnail "$2" -unsharp 0.25x0.08+8.3+0.045 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB "$1"
}