Drawing text as part of long convert, php exec

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
urewelcome
Posts: 4
Joined: 2014-07-29T05:50:05-07:00
Authentication code: 6789

Drawing text as part of long convert, php exec

Post by urewelcome »

I have a long convert command that works just fine in composting several images.
I want to add some text layer after the images are composed, but I cant seem to get it right.
Where and how should I add the text?

Code: Select all

$cmd =" -size {$final_image_w}x{$final_image_h} xc:white -density 300 "; 
$cmd .=" {$input_cal}  -geometry +0+{$final_top_h} -composite"; 
$cmd .=" {$input_image}  -geometry +{$user_image_right}+{$user_image_top} -composite"; 
$cmd .=" {$input_frame}  -geometry +0+0 -composite";
$output = "/home/isocia5/public_html/fbcalendar/src/php/upload/".$fb_id."/exports_".$canvas_size."/".$fb_id."_".$canvas_id.".jpg";
exec("convert {$cmd} {$output} ");
The code above works fine, composting the input_cal + input_image + input_frame to a singel file.
I just need to add few text layers above,
Please help.
Post Reply