DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl
DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
def bubg(filepath, color_list): # 透明色用背景色补齐# 输出修改后文件夹中包含的文件im = Image.open(filepath)x, y = im.size# 使用蓝色色来填充背景(0,0,255) 黑色(0,0,0)p = Image.new('RGBA', im.size, color_list)p.paste(im, (0, 0, x, y), im)p.resize((62,62), Image.LANCZOS)p.save(filepath)fp = 'images\\fenge\gjqr-2.png' cl = (0,0,0) bubg(fp,cl)
提示:
E:\pgame\venv\Scripts\python.exe E:/pgame/图片工具/批量补背景色转统一大小.py
E:/pgame/图片工具/批量补背景色转统一大小.py:18: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
p.resize((62,62), Image.LANCZOS)
按提示换了如下
def bubg(filepath, color_list): # 透明色用背景色补齐# 输出修改后文件夹中包含的文件im = Image.open(filepath)x, y = im.size# 使用蓝色色来填充背景(0,0,255) 黑色(0,0,0)p
DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl相关推荐
- DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl
消除警告 DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Re ...
- 【DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01).的解决方案】
DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampl ...
- 出现 DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 的解决方法
目录 1. 问题所示 2. 原理分析 3. 解决方法 1. 问题所示 使用plt代码模块的时候 问题如下: /home/kkjz/anaconda3/envs/py17/lib/python3.7/s ...
- DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version.
DeprecationWarning:current URL string parser is deprecated, and will be removed in a future version. ...
- 关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur
关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur ...
- php解决 mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysq
微信小程序开发交流qq群 173683895 承接微信小程序开发.扫码加微信. The mysql extension is deprecated and will be removed i ...
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead
1.现象描述: 以前在测试环境中使用过icehouse版本,记得当时查看网络列表是使用neutron net-list,最近两天在测试openstack ocata的时候发现好多之前的命令都不能正常使 ...
- 成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use
成功解决 keras\callbacks.py:999: UserWarning: `epsilon` argument is deprecated and will be removed, use ...
- Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version.
2019独角兽企业重金招聘Python工程师标准>>> PHP 接口,使用 ajax post方式提交数据的时候报错: Automatically populating $HTTP_ ...
最新文章
- 01_反射_02_反射类的构造方法
- P2839 [国家集训队]middle 二分 + 主席树 在值域上建区间
- python爬虫的技能_关于 Python 爬虫可能涉及到的技能点
- 为什么要使用Base64?
- java标准i o重定向_Java I/O(二)其他常用的输入输出流PrintStream等、标准流重定向...
- django之Layui界面点击弹出个对话框并请求逻辑生成分页的动态表格
- Flutter进阶—实现动画效果(四)
- 定时任务重启后执行策略_定时任务时间过长会不会影响下次的执行? 第331篇...
- hdu1421 搬寝室 DP
- Wannafly挑战赛28
- ai能不能同时切割多个对象_今天才发现,AI有这9个隐藏技能...
- 运行vue遇到的坑(续更
- 手动保存刷新微星主板BIOS图解教程
- 汽车总线协议15765-2(2005)CANFD协议研究
- 音乐格式转换软件测试工程师,免费音频转换器:如何把MP3文件转换为其他格式...
- Android 运行时权限检测流程,申请危险权限组权限代码
- 青岛科技大学计算机转专业,2021年青岛科技大学大一新生转专业及入学考试相关规定...
- 【Unity3D插件】UniRx(基于Unity的响应式编程框架)插件教程
- 预测和评价----学习反馈
- 雷地豫 (易經大意 韓長庚)