here is code which creats animated text using imagemagick..
$label=$_POST["label"];
$cmd = " -background transparent -font $font -pointsize $size label:$label -stroke black -strokewidth 2 ".
" \( -clone 0 -tile \"" . $image . "[0]\" -stroke black -strokewidth 2 -gravity center -annotate +0+0 $label \) ".
the above code wokrs fine when i enter “1234” in label field … but it doe not when i type”12 34″ it displays only “12” it is not taking “space” in between charcter …something needs to be done for “label” variable.. not sure how to fix this.. please help me to resolve this…
Put the entire string in double quotes since spaces are not allowed in command line. In the following i enclosed both usages of
$labelin double-quotes using the\"escape sequence: