17 lines
392 B
PHP
17 lines
392 B
PHP
<?php
|
|
header('Content-type: image/jpeg');
|
|
|
|
$image = imagecreatefromjpeg('banner.jpg');
|
|
$white_color = imagecolorallocate($image, 255, 255, 255);
|
|
|
|
$ezet = __DIR__. '/sortelo.ttf';
|
|
|
|
$date = new DateTime($com['date']);
|
|
$currenttime = $date->format('H:i');
|
|
|
|
imagettftext($image, 120, 0, 252, 270, $white_color, $ezet, $currenttime);
|
|
|
|
imagejpeg($image);
|
|
imagedestroy($image);
|
|
?>
|