Easier way to configure wether or not the previews are scaled down
This commit is contained in:
parent
558d071fdd
commit
5f6991b08f
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
export DISPLAY=:0
|
||||
export SCALE_PREVIEW=true # make the previews really small so you only have a small idea of what the server sees
|
||||
|
||||
INPUT="$1"
|
||||
ID=$2
|
||||
|
|
|
@ -75,8 +75,12 @@ grab_screen_to_public(){
|
|||
rm -f "$tempfile"
|
||||
scrot "$tempfile"
|
||||
vips crop "$tempfile" "$croppedfile" 0 24 2856 1564
|
||||
vips resize "$croppedfile" "$scaledfile" 0.1
|
||||
mv -f "$scaledfile" "$filepath"
|
||||
if [ "$SCALE_PREVIEW" = "true" ]; then
|
||||
vips resize "$croppedfile" "$scaledfile" 0.1
|
||||
mv -f "$scaledfile" "$filepath"
|
||||
else
|
||||
mv -f "$croppedfile" "$filepath"
|
||||
fi
|
||||
}
|
||||
|
||||
keycombo(){
|
||||
|
|
Loading…
Reference in New Issue
Block a user