summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-02-13 18:42:16 (GMT)
committer Mario Fetka <[email protected]>2012-02-13 18:42:16 (GMT)
commit9e1288193294ed09e964ec4ef07ca2c38d855c45 (patch)
tree443aa6c8dc70c313c741283d4a3b42d0082e00bb
parentf76491e1796182d2dcd9646333bf5a7687484103 (diff)
force 256 colours
-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 b50826f..597775c 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -140,7 +140,7 @@ convert_image() {
log_debug "Icon Wight: $wight < Hight: $hight"
convert $src -colorspace RGB -transparent white -background transparent \
-resize x160 -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 png8:$dst
+ -composite -modulate 110 -colors 256 png8:$dst
builder_check_error "converting image"
elif [ $wight -gt $hight ] ; then
# Its wider so force 160x and let imagemagic decide the right hight
@@ -148,14 +148,14 @@ convert_image() {
log_debug "Icon Wight: $wight > Hight: $hight"
convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 png8:$dst
+ -composite -modulate 110 -colors 256 png8:$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 RGB -transparent white -background transparent \
-resize 160x160 -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 png8:$dst
+ -composite -modulate 110 -colors 256 png8:$dst
builder_check_error "converting image"
else
# Imagemagic is unable to detect the aspect ratio so just force 160x160
@@ -163,7 +163,7 @@ convert_image() {
log_debug "Icon Wight: $wight unknown Hight: $hight"
convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x160 xc:transparent +swap -gravity center -composite \
- -modulate 110 png8:$dst
+ -modulate 110 -colors 256 png8:$dst
builder_check_error "converting image"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace