时间:2021-07-01 10:21:17 帮助过:87人阅读
代码如下:
import Image
image = Image.open('a.jpg')
import cStringIO
buf = cStringIO.StringIO()
image.save(buf, image.format,quality=75)
data = buf.getvalue()
a = u.writeFile('/this/logo.jpg',data,True)