Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7099269

Browse files
Merge pull request avinashkranjan#372 from achalesh27022003/achalesh
Added Automatic Certificate Generator
2 parents 7ddf916 + 96a4a9e commit 7099269

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Automatic-Certificate-Generator
2+
This python script automatically generates certificate by using a certificate template and csv file which contains the list of names to be printed on certificate. It downloads the certificate in the directory i.e. in **pictures** folder where the scripts are there.
3+
4+
## Installation
5+
6+
First of all install [python]("https://www.python.org/downloads/") on your system.
7+
```bash
8+
pip install PI
9+
pip install Pandas
10+
pip install pillow
11+
```
12+
13+
## Procedure
14+
Go to this [Reference]("https://youtu.be/Arrni3wgb0I") and follow it.
157 KB
Loading[フレーム]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name
2+
Achalesh Lakhotiya
3+
John Doe
4+
Ramesh Kumar
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# importing packages & modules
2+
from PIL import Image, ImageDraw, ImageFont
3+
import pandas as pd
4+
import os
5+
6+
# Implementation to generate certificate
7+
df = pd.read_csv('list.csv')
8+
font = ImageFont.truetype('arial.ttf',60)
9+
for index,j in df.iterrows():
10+
img = Image.open('certificate.png')
11+
draw = ImageDraw.Draw(img)
12+
draw.text(xy=(150,250),text='{}'.format(j['name']),fill=(0,0,0),font=font) # customization
13+
img.save('pictures/{}.png'.format(j['name']))
163 KB
Loading[フレーム]
158 KB
Loading[フレーム]
161 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /