Skip to content

Commit bf60b09

Browse files
authored
Merge pull request #820 from IsharMhzn/letter_image_generator
Added letter image generator
2 parents 9a61d57 + 671c658 commit bf60b09

30 files changed

+65
-0
lines changed

letter_image_generator/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Letter Image Generator
2+
3+
The script generates images containing center aligned letters from ("A" to "Z") with random background colors.
4+
5+
6+
Use case examples: Google Profile Picture Generator
7+
8+
## Getting Started
9+
Create a virtual environment and activate it.
10+
11+
12+
Then, install the **PIL** library using the following command
13+
14+
15+
> pip install -r requirements.txt
16+
17+
## Usage
18+
The script can be run as to generate (A to Z) images and save then in **images/** folder.
19+
> python letter_image_generator.py
20+
21+
Or, use the ```letter_image_generator(letter, width, height)``` function to generate the image of desired width, height and letter.
22+
23+
### Demo
24+
Here are some pictures of the image results.
25+
26+
![A.png](images/A.png)
27+
![R.png](images/R.png)
28+
29+
## Author
30+
@IsharMhzn
127 KB
Binary file not shown.

letter_image_generator/images/A.png

5.38 KB
Loading

letter_image_generator/images/B.png

4.88 KB
Loading

letter_image_generator/images/C.png

6.08 KB
Loading

letter_image_generator/images/D.png

4.79 KB
Loading

letter_image_generator/images/E.png

1.9 KB
Loading

letter_image_generator/images/F.png

1.88 KB
Loading

letter_image_generator/images/G.png

6.26 KB
Loading

letter_image_generator/images/H.png

1.85 KB
Loading

0 commit comments

Comments
 (0)