summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-02-13 18:40:27 (GMT)
committer Mario Fetka <[email protected]>2012-02-13 18:40:27 (GMT)
commitf76491e1796182d2dcd9646333bf5a7687484103 (patch)
tree84e56d876dcb98b2849ba86ceb26d073b2c17b58
parentfc04aefe84a72633aea366842fa42e419e91fc5d (diff)
create png8
-rw-r--r--lib/builder-utils.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 5f29643..b50826f 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -138,32 +138,32 @@ 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 sRGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize x160 -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 $dst
+ -composite -modulate 110 png8:$dst
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
log_debug "Icon Wight: $wight > Hight: $hight"
- convert -colorspace sRGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 $dst
+ -composite -modulate 110 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 -colorspace sRGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x160 -size 160x160 xc:transparent +swap -gravity center \
- -composite -modulate 110 $dst
+ -composite -modulate 110 png8:$dst
builder_check_error "converting image"
else
# 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 sRGB $src -transparent white -background transparent \
+ convert $src -colorspace RGB -transparent white -background transparent \
-resize 160x160 xc:transparent +swap -gravity center -composite \
- -modulate 110 $dst
+ -modulate 110 png8:$dst
builder_check_error "converting image"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace