https://github.com/sathirasrisathsara/teamspeak-banner
Enforcers teamspeak dynamic banner made with PHP
https://github.com/sathirasrisathsara/teamspeak-banner
banner live-banner php teamspeak teamspeak-server
Last synced: 3 months ago
JSON representation
Enforcers teamspeak dynamic banner made with PHP
- Host: GitHub
- URL: https://github.com/sathirasrisathsara/teamspeak-banner
- Owner: SathiraSriSathsara
- Created: 2023-06-07T14:52:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T13:02:49.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T09:54:31.184Z (5 months ago)
- Topics: banner, live-banner, php, teamspeak, teamspeak-server
- Language: PHP
- Homepage: https://ts.enforcers.lk/banner/image.php
- Size: 1.5 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# teamspeak-banner
This PHP code generates a dynamic image by combining background images and overlaying a top image. It also applies text to the image using TrueType fonts. The resulting image is then outputted as a PNG file.- Top image: `images/top.png`
- Background image: `images/back1.png`## Live Preview > https://ts.enforcers.lk/banner/image.php
## Requirements
- PHP 5.4 or above
- A directory containing background images in PNG format
- A top image in PNG format
- TrueType fonts for applying text to the image## Usage
1. Set the `$backgroundDirectory` variable to the directory path where your background images are located. Make sure the images in the directory are in PNG format.
2. Place your top image in the `images/` directory.
3. Customize the text applied to the image by modifying the `imagettftext()` function parameters.
4. Ensure that the necessary TrueType font files are available and specify the font file path in the `imagettftext()` function.
5. Configure your web server to process PHP files.
6. Access the PHP script through a web browser or use it as an endpoint to retrieve the generated image.
![]()
Sathira Sri Sathsara @ 2023