Pillow is a Python Imaging Library (PIL), which adds support for opening, manipulating, and saving images.Pillow is built on top of PIL (Python Image Library). PIL is one of the important modules for image processing in Python.Pillow module gives more functionalities, runs on all major operating system and support for python 3. It supports wide variety of images such as “jpeg”, “png”, “bmp”, “gif”, “ppm”, “tiff”. You can do almost anything on digital images using pillow module. Apart from basic image processing functionality, including point operations, filtering images using built-in convolution kernels, and color space conversions.
install pillow in your system by running pip install pillow in terminal or command prompt and the setup is ready.To add text, you must first download a 'font' file locally to your machine, for example for Times Roman [times-ro.ttf] (https://www.download-free-fonts.com/details/86847/ times-roman) Then you can add text in times new roman.
The output
Link to colab file
Vaishnavi Jha