PIL processes and saves the pictures uploaded to Django PIL processes and saves the pictures uploaded to Django P the I L of the transmission to D J A n- G O of FIG sheet feeding line the processing and security deposit
from PIL import Image
pic = request.FILES["picture"]
im_pic = Image.open(pic)
# 这样就把InMemoryUploadedFile转化为了PIL类型数据,pic是InMemoryUploadedFile,im_pic是PIL类型