首先尝试将原始数据加载到
BytesIO容器中:
from io import BytesIOfrom PIL import Imagefrom subprocess import Popen, PIPEdata = Popen.communicate(Popen(['import','-w','0x02a00001','png:-'], stdout=PIPE))[0]scr = Image.open(BytesIO(data))
欢迎分享,转载请注明来源:内存溢出
首先尝试将原始数据加载到
BytesIO容器中:
from io import BytesIOfrom PIL import Imagefrom subprocess import Popen, PIPEdata = Popen.communicate(Popen(['import','-w','0x02a00001','png:-'], stdout=PIPE))[0]scr = Image.open(BytesIO(data))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)