How to create blank image using Pillow, Python

Sometimes we need a blank image file to be created during execution of program, during processing required text or anything else can be added. Following is the sample program to create blank file using PIL, python.

You can decide file size and color as per your requirement.

https://gist.github.com/conquistadorjd/2c93de1d95fa1a953c2221efc4420c4b#file-02_create_blank_image-py

Here is the output image

CategoriesUncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *