make the imgae brighter
This commit is contained in:
parent
e6b9e45ed9
commit
1352e032fb
@ -138,31 +138,32 @@ convert_image() {
|
|||||||
# Its higher so force x160 and let imagemagic decide the right wight
|
# Its higher so force x160 and let imagemagic decide the right wight
|
||||||
# then add transparency to the rest of the image to fit 160x160
|
# then add transparency to the rest of the image to fit 160x160
|
||||||
log_debug "Icon Wight: $wight < Hight: $hight"
|
log_debug "Icon Wight: $wight < Hight: $hight"
|
||||||
convert $src -colorspace RGB -transparent white -background transparent \
|
convert $src -colorspace sRGB -transparent white -background transparent \
|
||||||
-resize x160 -size 160x160 xc:transparent +swap -gravity center \
|
-resize x160 -size 160x160 xc:transparent +swap -gravity center \
|
||||||
-composite $dst
|
-composite -modulate 110 $dst
|
||||||
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
|
||||||
# then add transparency to the rest of the image to fit 160x160
|
# then add transparency to the rest of the image to fit 160x160
|
||||||
log_debug "Icon Wight: $wight > Hight: $hight"
|
log_debug "Icon Wight: $wight > Hight: $hight"
|
||||||
convert $src -colorspace RGB -transparent white -background transparent \
|
convert $src -colorspace sRGB -transparent white -background transparent \
|
||||||
-resize 160x -size 160x160 xc:transparent +swap -gravity center \
|
-resize 160x -size 160x160 xc:transparent +swap -gravity center \
|
||||||
-composite $dst
|
-composite -modulate 110 $dst
|
||||||
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 -transparent white -background transparent \
|
convert $src -colorspace sRGB -transparent white -background transparent \
|
||||||
-resize 160x160 -size 160x160 xc:transparent +swap -gravity center \
|
-resize 160x160 -size 160x160 xc:transparent +swap -gravity center \
|
||||||
-composite $dst
|
-composite -modulate 110 $dst
|
||||||
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
|
||||||
# this could result in streched images
|
# this could result in streched images
|
||||||
log_debug "Icon Wight: $wight unknown Hight: $hight"
|
log_debug "Icon Wight: $wight unknown Hight: $hight"
|
||||||
convert $src -colorspace RGB -transparent white -background transparent \
|
convert $src -colorspace sRGB -transparent white -background transparent \
|
||||||
-resize 160x160 xc:transparent +swap -gravity center -composite $dst
|
-resize 160x160 xc:transparent +swap -gravity center -composite \
|
||||||
|
-modulate 110 $dst
|
||||||
builder_check_error "converting image"
|
builder_check_error "converting image"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user