How to use Pillow with Django

前端 未结 4 1525
借酒劲吻你
借酒劲吻你 2021-02-18 16:44

I installed Pillow and now want to use it on my Django site to allow uploading of images of through my admin page. See previous question.

What changes do I need to make

4条回答
  •  轮回少年
    2021-02-18 17:46

    In a Python module that makes a drawing I simply put the following.

    import PIL.Image as Image
    

    and likewise for ImageDraw and ImageFont. Those were the only changes that were necessary after a routine PIP installation.

提交回复
热议问题