This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/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"
|