Make smart-resize resize along the longer edge
This commit is contained in:
parent
218d89d0a1
commit
67fd3b9fcb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue