I'm trying to draw a simple image with GD
on PHP 7.2.5
on my Server (Debian 4.9.88-1+deb9u1).
My source code looks simply like that:
<?php
error_reporting(E_ALL);
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefromjpeg("test.jpg");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
test.jpg is available in the same folder.
PHP-Version: 7.2.5
I can't see anything related in the log files.
GD is activated on the server:
Result looks like that: