Move comparison to inside if statement

This commit is contained in:
Dylan Araps 2016-05-28 14:07:19 +10:00
parent 77fe15cb29
commit 70aa01aebb
1 changed files with 5 additions and 5 deletions

View File

@ -2277,12 +2277,12 @@ getimage () {
size=$(identify -format "%w %h" "$img")
og_width=${size%% *}
og_height=${size##* }
fi
# This checks to see if height is geater than width
# so we can do a better crop of portrait images.
size=$og_height
[ "$og_height" -gt "$og_width" ] && size=$og_width
# This checks to see if height is geater than width
# so we can do a better crop of portrait images.
size=$og_height
[ "$og_height" -gt "$og_width" ] && size=$og_width
fi
case "$crop_mode" in
fit)