initial commit
This commit is contained in:
commit
234e5a5c02
BIN
banner.jpg
Normal file
BIN
banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 232 KiB |
16
index.php
Normal file
16
index.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?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);
|
||||
?>
|
BIN
sortelo.ttf
Normal file
BIN
sortelo.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user