summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/curlqb
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/curlqb')
0 files changed, 0 insertions, 0 deletions
width=$(identify -ping -format '%w' "$1") height=$(identify -ping -format '%h' "$1") ratio=$((wratio*100/hratio)) dim=$((width*100/height)) if [ "$dim" -ne "$ratio" ]; then if [ "$dim" -lt "$ratio" ]; then chopgeom="${chopnum}x0" width=$((height*wratio/hratio)) else chopgeom="0x$chopnum" height=$((width*hratio/wratio)) fi # may throw error "sort: write failed: 'standard output': Broken pipe \n sort: write error" # caused by head exit (or close stdin) before sort output complete, can ignore # https://stackoverflow.com/questions/46202653/bash-error-in-sort-sort-write-failed-standard-output-broken-pipe