How can I save an image with PIL?

前端 未结 4 680
青春惊慌失措
青春惊慌失措 2020-11-28 04:09

I have just done some image processing using the Python image library (PIL) using a post I found earlier to perform fourier transforms of images and I can\'t get the save fu

4条回答
  •  长情又很酷
    2020-11-28 04:49

    You should be able to simply let PIL get the filetype from extension, i.e. use:

    j.save("C:/Users/User/Desktop/mesh_trans.bmp")
    

提交回复
热议问题