We were going to create graphics by a snippet by this example-code but it doesn´t work. Does anybody have an idea what we did wrong?
<?php
$image = imagecreate(1200,700);
$color_body = imagecolorallocate($image,200,200,200);
imagefill($image, 0, 0, $color_body);
header("Content-Type: image/jpeg");
imagejpeg($image,"",100);
imagedestroy($image);
?>
We called the snippet without success by
and also by
<img src="[[!graphic]]" />
The only way it works is to put the code in an extra file beside modx like graphic.php and call this file in modx by <img src="graphic.php" />