摘要: 一:PIL格式图片转成二进制 先读取为PIL格式,再转为二进制 import io import base64 from PIL import Image def image2byte(image): ''' 图片转byte image: 必须是PIL格式 image_bytes: 二进制 ''' 阅读全文
posted @ 2022-04-27 13:56 浩浩学习 阅读(6820) 评论(0) 推荐(0) 编辑