How can I write text over an image, and overlay another image on it, in Python?

后端 未结 3 838
北海茫月
北海茫月 2021-02-04 12:38

I need to put some text over a PNG image in Python, I need to put another image too over the first one.

So I\'ll have a base image (the same for every image created), a

3条回答
  •  我在风中等你
    2021-02-04 13:22

    PIL is one approach. You might also look at ImageMagick, which also supports compositing images and putting text into images (and lots of other stuff).

    There's a python interface to ImageMagick through PythonMagick.

提交回复
热议问题