mogrify -draw text dont work , php exec
Posted: 2014-07-30T09:51:32-07:00
I'm trying a couple of option to get mogrify -draw text to work but cant succeed.
Im using exec command on php.
Proviouse convert command work just fine, and also draw a circle work just fine, just cant get the text to work.
error code is outputed - only 1.
first try :
second try:
Im using exec command on php.
Proviouse convert command work just fine, and also draw a circle work just fine, just cant get the text to work.
error code is outputed - only 1.
first try :
Code: Select all
exec("mogrify -gravity Center -font Arial -pointsize 100 -fill black -draw \"text 0,0 'Test Text'\" {$output}",$out,$err);
Code: Select all
$cmd = " -pointsize 400 -fill black ".
"-gravity south -draw \" text 0,0 'Draw text' \" ";
exec("mogrify $cmd {$output}",$out,$err);