Here is the code used ( I used PHP to make it dynamic to run a database creating multiple image... which rendered VERY fast .. 80 images in a minute ):
Code: Select all
$path = "/opt/local/bin/";
$font = "font/Impact.ttf";
$bg = "back/banner.jpg";
$name = strtoupper($name);
$label = "WE NEED ".$name." ON OUR TEAM!\nGO DOGS!";
$final = $path."convert -size 1163x338 -background none -gravity center -font ".$font." -fill '#1c33cf' label:'".$label."' caption.png";
exec($final, $result);
list($fwidth, $fheight) = getimagesize('caption.png');
$final = $path."convert caption.png -distort Shepards ' 0,0,70,-25 150,0,170,5 288,0,310,7 500,0,500,3 675,0,675,10 824,0,824,10 1000,0,900,5 0,".$fheight.",45,350 ".$fwidth.",0,1095,-10 ".$fwidth.",".$fheight.",1000,350 ' caption.png";
exec($final, $result);
$final = $path."convert ".$bg." caption.png -compose linear-burn -geometry +10+10 -colorspace CMYK -composite ".$count.".jpg";
exec($final, $result);
The $name and $count you see is from a script that runs this script that goes through a csv file getting the name and auto incrementing from 1 on $count.
Pretty nice results... love the linear-burn from -compose too.
Well hope some may find it useful and the power of what ImageMagick can do.
P.S: This is a cmyk image... to get best results, save to computer to see correct colors.