67fd3b9fcb8b7ef957dca86aed73032d4d54a8e4

Author
Pavle Portic <pavle.portic@tilda.center>
Committer
Pavle Portic <pavle.portic@tilda.center>
Date

Message

Make smart-resize resize along the longer edge

Diff

 1diff --git a/dot_local/bin/executable_smart-resize b/dot_local/bin/executable_smart-resize
 2index 9b20f003ff53abebe073e0f00550f859474fad22..8ab4460c6693a5a485c7cb2bd46d203eb8ef7f63 100644
 3--- a/dot_local/bin/executable_smart-resize
 4+++ b/dot_local/bin/executable_smart-resize
 5@@ -14,8 +14,8 @@ XRES=$(echo $RES | cut -d "x" -f1)
 6 YRES=$(echo $RES | cut -d "x" -f2)
 7 
 8 if (( XRES > YRES )); then
 9-	convert $1 -resize x$2 $1
10-else
11 	convert $1 -resize $2x $1
12+else
13+	convert $1 -resize x$2 $1
14 fi
15