Browse Source

initial commit

master
Givou 2 months ago
commit
234e5a5c02
  1. 0
      README.md
  2. BIN
      banner.jpg
  3. 16
      index.php
  4. BIN
      sortelo.ttf

0
README.md

BIN
banner.jpg

Binary file not shown.

After

Width: 2000  |  Height: 486  |  Size: 232 KiB

16
index.php

@ -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

Binary file not shown.
Loading…
Cancel
Save