Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reykan-kp/teacher-day-greeting-card-generator
Generate personalized Teacher's Day greeting cards with this Python script using the Python Imaging Library (PIL). Express gratitude to your teachers by creating visually appealing cards with meaningful text and customizable elements.
https://github.com/reykan-kp/teacher-day-greeting-card-generator
Last synced: about 2 months ago
JSON representation
Generate personalized Teacher's Day greeting cards with this Python script using the Python Imaging Library (PIL). Express gratitude to your teachers by creating visually appealing cards with meaningful text and customizable elements.
- Host: GitHub
- URL: https://github.com/reykan-kp/teacher-day-greeting-card-generator
- Owner: ReyKan-KP
- Created: 2024-02-01T18:28:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-01T18:36:01.000Z (12 months ago)
- Last Synced: 2024-02-01T19:53:45.701Z (12 months ago)
- Language: Python
- Size: 309 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teacher-Day-Greeting-Card-Generator
This Python script creates a beautiful Teacher's Day greeting card using the Python Imaging Library (PIL). The script takes an input image, adds meaningful text using different fonts, and saves the output as a new image.
### Usage
Clone the repository:
```bash
git clone https://github.com//ReyKan-KP/Teacher-Day-Greeting-Card-Generator.git
cd Teacher-Day-Greeting-Card-Generator
```## Prerequisites
Before running the script, make sure you have the required libraries, fonts, and an input image.
### Libraries
Install the required library using the following:
```bash
pip install pillow
```### Fonts
1. **Input Image**: Place the input image named `InputImage.png` in the same directory as the script.
2. **Fonts**:
- Download the "Rochester" font and place it in the `rochester` folder.
- Download the "Morning Dew" font and place it in the `Antonellie-Calligraphy-Font` folder.## How to Run
```bash
python main.py
```This command will execute the script, and the output will be saved as `OutputImage.png` in the same directory.
## Output
The output image is a visually appealing Teacher's Day greeting card with the following elements:
- Main text: "Happy Teacher's Day"
- Secondary text: "Thank you for imparting your knowledge unto us."
- Tertiary text: "We will always be grateful to you for your support and kindness."
- Created by: "Kanishaka Pranjal\nS20210010108"## Customize
Feel free to customize the script by adjusting the text, font sizes, colors, and positions to suit your preferences.
Feel free to use and modify the script for your own greeting cards. If you have any suggestions or improvements, please contribute by creating a pull request. Enjoy creating personalized greeting cards for your teachers!