Give this a go:
Code: Select all
<?php
system("convert -size 100×60 xc:none -fill red -draw \"circle 25,30 10,30\" -draw \"circle 75,30 90,30\" -draw \"rectangle 25,15 75,45\" PNG:-");
?>
This code MUST be the first thing on the page.
Or you can modify this code and put it on a page of its own and call with <img src="page_code_is_on.php">
Code: Select all
<?php
$cmd = convert -size 100×60 xc:none -fill red -draw \"circle 25,30 10,30\" -draw \"circle 75,30 90,30\" -draw \"rectangle 25,15 75,45\" PNG:-";
header("Content-type: image/jpeg");
passthru($cmd, $retval);
?>