summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-02-12 07:04:44 (GMT)
committer Mario Fetka <[email protected]>2012-02-12 07:04:44 (GMT)
commite6b9e45ed9d6d0a2d6dfd335e13b227c3dc4ac1b (patch)
treec83bd125ea14ba78e2f6a3af9eb8419525962ba8
parent1704cc8fcf8b7d1e0b15636a901bfd218b7bb440 (diff)
apply rgb on the target image not the source image
-rw-r--r--lib/builder-utils.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 2fa5bb9..94a9844 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 -colorspace RGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize x160 -size 160x160 xc:transparent +swap -gravity center \
-composite $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 -colorspace RGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x -size 160x160 xc:transparent +swap -gravity center \
-composite $dst
builder_check_error "converting image"
elif [ $wight -eq $hight ] ; then
# Its scare so force 160x160
log_debug "Icon Wight: $wight = Hight: $hight"
- convert -colorspace RGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x160 -size 160x160 xc:transparent +swap -gravity center \
-composite $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 -colorspace RGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x160 xc:transparent +swap -gravity center -composite $dst
builder_check_error "converting image"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace