summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2012-02-14 14:47:46 (GMT)
committer Mario Fetka <[email protected]>2012-02-14 14:47:46 (GMT)
commit6c78bf2db4ce67eda89a244227273a5343243b0c (patch)
treefaf66c31c542f5dc435a65e92ac5cd0b3a06ff82
parent83ee37675a23b3681c4d8b47f7b2a35844484d22 (diff)
readd png8 for created images
-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 e9e8d7b..687b880 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -141,7 +141,7 @@ convert_image() {
log_debug "Icon Wight: $wight < Hight: $hight"
convert $src -colorspace RGB -resize x160 \
-size 160x160 xc:white +swap -gravity center -composite \
- -modulate 110 -colors 256 $OUTPUT_DIR/resize.png
+ -modulate 110 -colors 256 png8:$OUTPUT_DIR/resize.png
builder_check_error "converting image"
elif [ $wight -gt $hight ] ; then
# Its wider so force 160x and let imagemagic decide the right hight
@@ -149,14 +149,14 @@ convert_image() {
log_debug "Icon Wight: $wight > Hight: $hight"
convert $src -colorspace RGB -resize 160x \
-size 160x160 xc:white +swap -gravity center -composite \
- -modulate 110 -colors 256 $OUTPUT_DIR/resize.png
+ -modulate 110 -colors 256 png8:$OUTPUT_DIR/resize.png
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 -resize 160x160 \
-size 160x160 xc:white +swap -gravity center -composite \
- -modulate 110 -colors 256 $OUTPUT_DIR/resize.png
+ -modulate 110 -colors 256 png8:$OUTPUT_DIR/resize.png
builder_check_error "converting image"
else
# Imagemagic is unable to detect the aspect ratio so just force 160x160
@@ -164,7 +164,7 @@ convert_image() {
log_debug "Icon Wight: $wight unknown Hight: $hight"
convert $src -colorspace RGB -resize 160x160 \
-size 160x160 xc:white +swap -gravity center -composite \
- -modulate 110 -colors 256 $OUTPUT_DIR/resize.png
+ -modulate 110 -colors 256 png8:$OUTPUT_DIR/resize.png
builder_check_error "converting image"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace