Please hELp me to edit this code..
Posted: 2011-12-30T07:25:28-07:00
Hello webmasters ,
Iam trying to desighn image magick code using "variables" to accept input from users...here is my code
As you can see on the screen
are three variable that i have used ,,,code works fine ... BUT NOW I NEED TO CREATE one more VARIABLE for image "animated_water.gif" please help me to edit this code on how to create variable for image...????
Iam trying to desighn image magick code using "variables" to accept input from users...here is my code
Code: Select all
$size=$_POST["size"];
$label=$_POST["label"];
$font=$_POST["font"];
$cmd = " -background transparent -font $font -pointsize $size label:$label -stroke black -strokewidth 2 ".
" \( -clone 0 -tile \"animated_water.gif[0]\" -stroke black -strokewidth 2 -gravity center -annotate +0+0 $label \) ".
" \( -clone 0 -tile \"animated_water.gif[1]\" -stroke black -strokewidth 2 -gravity center -annotate +0+0 $label \) ".
" -delete 0 -set delay 15 -loop 0 -trim +repage -layers Optimize ";
$array=array();
echo "<pre>";
exec("convert $cmd masked.gif 2>&1", $array);
echo "<br>".print_r($array)."<br>";
echo "</pre>";
echo "<img src='masked.gif'>";
Code: Select all
$size=$_POST["size"];
$label=$_POST["label"];
$font=$_POST["font"];