Make smart-resize resize along the longer edge

This commit is contained in:
Pavle Portic 2019-06-14 22:08:31 +02:00
parent 218d89d0a1
commit 67fd3b9fcb
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ XRES=$(echo $RES | cut -d "x" -f1)
YRES=$(echo $RES | cut -d "x" -f2)
if (( XRES > YRES )); then
convert $1 -resize x$2 $1
else
convert $1 -resize $2x $1
else
convert $1 -resize x$2 $1
fi