views:

118

answers:

1

Hi

i am in need of curving a text and place it over another image. i got the below mentioned code from their website and its not working; somebody please tell me how can i do this in php. My system will support imagemagick and its enabled..

convert ( newmug1.jpg -thumbnail 200x200 -write mpr:image +delete ) \ ( -pointsize 20 -fill red -background none label:"Cottenham horse show" -virtual-pixel transparent -distort arc 120 -write mpr:arc +delete ) \ mpr:image mpr:arc -gravity north -composite combined.jpg

please help me

thanks and regards

tismon

+1  A: 

Use the exec command - http://php.net/manual/en/function.exec.php

exec('convert ( newmug1.jpg -thumbnail 200x200 -write mpr:image +delete ) \ ( -pointsize 20 -fill red -background none label:"Cottenham horse show" -virtual-pixel transparent -distort arc 120 -write mpr:arc +delete ) \ mpr:image mpr:arc -gravity north -composite combined.jpg');
Lizard
thanks for the reply, but its not working for me. i had changed "exec" to "system"; but this too failed.this is the code i had used<?phpsystem("convert ( newmug1.jpg -thumbnail 200x200 -write mpr:image +delete ) \ ( -pointsize 20 -fill red -background none label:'Cottenham horse show' -virtual-pixel transparent -distort arc 120 -write mpr:arc +delete ) \ mpr:image mpr:arc -gravity north -composite combined.jpg");?>
tismon
wrap the command arounf inverted commas ' rather that quotation makrs " as you have a " in the command
Lizard