17 lines
219 B
Bash
Executable file
17 lines
219 B
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
set -x
|
|
|
|
FILE="$1"
|
|
|
|
SCALE="$2"
|
|
test -z "$SCALE" &&
|
|
SCALE=`echo | wdmenu -p 'Scale'`
|
|
|
|
OUTPUT="$3"
|
|
test -z "$OUTPUT" &&
|
|
OUTPUT="${FILE}.resized.png"
|
|
|
|
magick convert "$FILE" -scale "${SCALE}%" "$OUTPUT"
|