How to draw text with image in background
问题 I want to make something like this python. I have the image in background and write text with transparent fill, so that image shows up. 回答1: Here's one way I found to do it using the Image.composite() function which is documented here and here. The approach used is described (very) tersely in this answer to the question Is it possible to mask an image in Python Imaging Library (PIL)? by @Mark Ransom…the following is just an illustration of applying it to accomplish what you want do. from PIL