How to convert a string to an image?

后端 未结 2 1794
渐次进展
渐次进展 2020-12-04 22:39

I started to learn python a week ago and want to write a small program that converts a email to a image (.png) so that it can be shared on forums without risking to get lots

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 23:09

    The first 3 lines are not complete, when I'm not wrong. The correct code would be:

    from PIL import Image
    from PIL import ImageDraw
    from PIL import ImageFont
    

提交回复
热议问题