Image

 

2023-03-08

import:: doc::


1
from PIL import Image
2
3
img = Image.open(io.BytesIO(req_img))
4
5
width, height = img.size # 获取宽高