Python3 PIL Image.open bytes

from PIL import Image
from io import BytesIO
import base64

...

image = Image.open(BytesIO(base64.b64decode(vals['image'])))
复制代码

你可能感兴趣的:(python)