summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-03-10 10:23:13 (GMT)
committer Mario Fetka <[email protected]>2013-03-10 10:23:13 (GMT)
commitab21cfc255df69de8052b3845fd55fe8e180bcaa (patch)
tree353f3e603d193cbe8d09a4f97a95a04a74320af8
parentf6505a176511484abd2df4d9fdec80a642255408 (diff)
add check for older verison of imagemagic about convert matte change
-rw-r--r--lib/builder-utils.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 1659576..3b0226a 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -192,8 +192,13 @@ convert_image() {
$OUTPUT_DIR/removed_black.png
# create the matte
+ if [ `convert | grep Version | awk '{print $3}' | sed "s/-.*//" | sed "s/\.//g"` -le 670 ] ; then
+ convert $OUTPUT_DIR/removed_black.png -channel matte -separate +matte \
+ $OUTPUT_DIR/matte.png
+ else
convert $OUTPUT_DIR/removed_black.png -channel matte -negate -separate +matte \
$OUTPUT_DIR/matte.png
+ fi
# negate the colors
convert $OUTPUT_DIR/matte.png -negate -blur 0x1 \

Powered by Domaintechnik.at | Hosting - Domain - Webspace