summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-02-14 14:44:18 (GMT)
committer Mario Fetka <[email protected]>2012-02-14 14:44:18 (GMT)
commit83ee37675a23b3681c4d8b47f7b2a35844484d22 (patch)
tree4481c0a7755795bf6127919cbb84e9bdf89fad3f
parent227b48bd41f4ac234a720b0e698c8bd5293cbbdf (diff)
more comments
-rw-r--r--lib/builder-utils.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 79d3723..e9e8d7b 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -134,9 +134,10 @@ convert_image() {
local wight=`${CMD_identify} -format "%w" $src`
${CMD_identify} -format "%wx%h" $src
+ # first resize the image to the new aspect ratio and add white borders
if [ $wight -lt $hight ] ; then
# Its higher so force x160 and let imagemagic decide the right wight
- # then add transparency to the rest of the image to fit 160x160
+ # then add white to the rest of the image to fit 160x160
log_debug "Icon Wight: $wight < Hight: $hight"
convert $src -colorspace RGB -resize x160 \
-size 160x160 xc:white +swap -gravity center -composite \
@@ -144,7 +145,7 @@ convert_image() {
builder_check_error "converting image"
elif [ $wight -gt $hight ] ; then
# Its wider so force 160x and let imagemagic decide the right hight
- # then add transparency to the rest of the image to fit 160x160
+ # then add white to the rest of the image to fit 160x160
log_debug "Icon Wight: $wight > Hight: $hight"
convert $src -colorspace RGB -resize 160x \
-size 160x160 xc:white +swap -gravity center -composite \

Powered by Domaintechnik.at | Hosting - Domain - Webspace