0
点赞
收藏
分享

微信扫一扫

上海亚商投顾:沪指震荡调整 飞行汽车概念股持续爆发

一.下载python PIY插件库

     PIP下载命令: pip install pillow -i https://mirrors.aliyun.com/pypi/simple

     PIY插件库:pillow Installation - Pillow (PIL Fork) 10.3.0.dev0 documentation

二.分辨率转化

from PIL import Image
import os

resolution = (1024, 1024)
with Image.open("spyglass.png") as img:
    img_resized = img.resize(resolution)
    img_resized.save("spyglass.png")
举报

相关推荐

0 条评论