readd png8 for created images

This commit is contained in:
Mario Fetka 2012-02-14 15:47:46 +01:00
parent 83ee37675a
commit 6c78bf2db4

View File

@ -141,7 +141,7 @@ convert_image() {
log_debug "Icon Wight: $wight < Hight: $hight" log_debug "Icon Wight: $wight < Hight: $hight"
convert $src -colorspace RGB -resize x160 \ convert $src -colorspace RGB -resize x160 \
-size 160x160 xc:white +swap -gravity center -composite \ -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" builder_check_error "converting image"
elif [ $wight -gt $hight ] ; then elif [ $wight -gt $hight ] ; then
# Its wider so force 160x and let imagemagic decide the right hight # 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" log_debug "Icon Wight: $wight > Hight: $hight"
convert $src -colorspace RGB -resize 160x \ convert $src -colorspace RGB -resize 160x \
-size 160x160 xc:white +swap -gravity center -composite \ -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" builder_check_error "converting image"
elif [ $wight -eq $hight ] ; then elif [ $wight -eq $hight ] ; then
# Its scare so force 160x160 # Its scare so force 160x160
log_debug "Icon Wight: $wight = Hight: $hight" log_debug "Icon Wight: $wight = Hight: $hight"
convert $src -colorspace RGB -resize 160x160 \ convert $src -colorspace RGB -resize 160x160 \
-size 160x160 xc:white +swap -gravity center -composite \ -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" builder_check_error "converting image"
else else
# Imagemagic is unable to detect the aspect ratio so just force 160x160 # 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" log_debug "Icon Wight: $wight unknown Hight: $hight"
convert $src -colorspace RGB -resize 160x160 \ convert $src -colorspace RGB -resize 160x160 \
-size 160x160 xc:white +swap -gravity center -composite \ -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" builder_check_error "converting image"
fi fi