Prerequisites: Python: Pillow (a fork of PIL)
Well if you have ever done something like creating certificates for participants of any event, then you know how tedious process it is. Let’s automate that using Python. We will be using the Pillow module of Python. To install that simply type the following in your terminal
pip install Pillow
You also need the design of the certificate as an image format (preferably png). You can use something like Microsoft Office Publisher to create the certificates and export them as png. Keep some extra space for entering the name. Below is the template certificate we will be using.
So, our certificate template is ready. Now, we need to find a suitable font for writing the name on it. You need the path to the font file (TTF file). If you are using Windows 10, then simply search for Fonts in windows search, it will show you results of Fonts settings. Head over there and you should see something similar to the following screen.
Now, choose the font you like from here and click on it. You will see a path to that font. Note down the path somewhere. You will need it in your code.
Below is the implementation.
Add the names to the NAMES list. Then change the font path and path to the certificate template according to your system. Then run the above code and all your certificates should be ready. This is a pretty effective solution for automating the process of creating certificates for a large number of participants. This can be very effective for event organizers.
- Python IMDbPY – Getting the certificates of the series
- wxPython - Create Radio Button using Create() function
- wxPython - Create Static Box using Create() method
- How to Create an App in Django ?
- Python - Create a box in GTK+ 3
- How to create a Dictionary in Python
- Create a directory in Python
- TensorFlow - How to create one hot tensor
- TensorFlow - How to create a TensorProto
- Create a stopwatch using python
- How to create a new thread in Python
- Tableau - Create Visualization
- Create Table Using Tkinter
- Create XML Documents using Python
- PyQt5 QProgressBar – How to create progress bar ?
- PyQt5 - Create Paint Application
- Create First GUI Application using Python-Tkinter
- Create an empty file using Python
- How to create an empty class in Python?
- Create a Numpy array filled with all ones
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.