diff --git a/frontends/wix/images/split_card.sh b/frontends/wix/images/split_card.sh index b9ff0d97..087f0562 100755 --- a/frontends/wix/images/split_card.sh +++ b/frontends/wix/images/split_card.sh @@ -37,6 +37,18 @@ get_card_name() fi } +#We check the version of convert +CONVERT_VER=`convert --version | grep Version | grep -o "[0-9]\.[0-9]\.[0-9]"` +CONVERT_MAJOR=`echo $CONVERT_VER | cut -d . -f 1` +CONVERT_MINOR=`echo $CONVERT_VER | cut -d . -f 2` +CONVERT_REV=`echo $CONVERT_VER | cut -d . -f 3` + +if [ $CONVERT_MAJOR -lt 6 -o $CONVERT_MAJOR -eq 6 -a $CONVERT_MINOR -lt 6 ] +then + echo "ImageMagick convert must be at least version 6.6.0 (current: $CONVERT_VER)" + exit 1 +fi + current=`pwd` #TODO: check directory presence #echo "making directory"