<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
// Save the gd2 image
// The file format for GD2 images is .gd2, see https://libgd.github.io/manuals/2.3.3/files/gd_gd-c.html
imagegd2($im, 'simple.gd2');
?>