diff options
author | Mario Fetka <[email protected]> | 2012-02-13 17:36:09 (GMT) |
---|---|---|
committer | Mario Fetka <[email protected]> | 2012-02-13 17:36:09 (GMT) |
commit | fc04aefe84a72633aea366842fa42e419e91fc5d (patch) | |
tree | 726e8bd231d76a47261028e44a32d767a04f087b /lib/builder-utils.sh | |
parent | 89fa16c834d36cc2f113e21f535eb574c9b1915e (diff) |
change order for image convert
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r-- | lib/builder-utils.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh index 1bad273..5f29643 100644 --- a/lib/builder-utils.sh +++ b/lib/builder-utils.sh @@ -138,7 +138,7 @@ convert_image() { # Its higher so force x160 and let imagemagic decide the right wight # then add transparency to the rest of the image to fit 160x160 log_debug "Icon Wight: $wight < Hight: $hight" - convert $src -colorspace sRGB -transparent white -background transparent \ + convert -colorspace sRGB $src -transparent white -background transparent \ -resize x160 -size 160x160 xc:transparent +swap -gravity center \ -composite -modulate 110 $dst builder_check_error "converting image" @@ -146,14 +146,14 @@ convert_image() { # Its wider so force 160x and let imagemagic decide the right hight # then add transparency to the rest of the image to fit 160x160 log_debug "Icon Wight: $wight > Hight: $hight" - convert $src -colorspace sRGB -transparent white -background transparent \ + convert -colorspace sRGB $src -transparent white -background transparent \ -resize 160x -size 160x160 xc:transparent +swap -gravity center \ -composite -modulate 110 $dst builder_check_error "converting image" elif [ $wight -eq $hight ] ; then # Its scare so force 160x160 log_debug "Icon Wight: $wight = Hight: $hight" - convert $src -colorspace sRGB -transparent white -background transparent \ + convert -colorspace sRGB $src -transparent white -background transparent \ -resize 160x160 -size 160x160 xc:transparent +swap -gravity center \ -composite -modulate 110 $dst builder_check_error "converting image" @@ -161,7 +161,7 @@ convert_image() { # Imagemagic is unable to detect the aspect ratio so just force 160x160 # this could result in streched images log_debug "Icon Wight: $wight unknown Hight: $hight" - convert $src -colorspace sRGB -transparent white -background transparent \ + convert -colorspace sRGB $src -transparent white -background transparent \ -resize 160x160 xc:transparent +swap -gravity center -composite \ -modulate 110 $dst builder_check_error "converting image" |