python将.ppm格式图片转换成.jpg格式文件的方法
作者:Xiaoli_Coding 时间:2023-02-16 19:19:54
将.ppm格式的图片转换成.jpg格式的图像,除了通过软件转换,还可以使用python脚本直接转换,so easy!!!
from PIL import Image
img = Image.open("images/25_color.ppm")
img.save("JPGimg/25_color.jpg")
img.show()
来源:https://blog.csdn.net/u010682375/article/details/78044999
标签:python,图片,转换
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python 读取位于包中的数据文件
2023-06-09 00:16:03
Opencv图像添加椒盐噪声、高斯滤波去除噪声原理以及手写Python代码实现方法
2021-12-30 00:21:40
![](https://img.aspxhome.com/file/2023/9/88949_0s.jpg)
Django实现auth模块下的登录注册与注销功能
2022-03-06 17:49:15
![](https://img.aspxhome.com/file/2023/4/85124_0s.jpg)
设计师挖掘用户需求浅谈
2009-10-25 13:24:00
如何基于Python实现数字类型转换
2023-10-08 00:57:13
FSO中的SubFolders 属性介绍
2008-01-05 13:57:00
pytest框架之fixture详细使用详解
2022-01-22 01:47:19
![](https://img.aspxhome.com/file/2023/0/102800_0s.png)
ASP初学者学习ASP指令
2008-10-14 17:27:00
python中Mako库实例用法
2022-01-05 16:38:21
python编程实现清理微信重复缓存文件
2022-06-20 02:12:12
![](https://img.aspxhome.com/file/2023/7/68417_0s.png)
使用Python爬取弹出窗口信息的实例
2021-08-27 19:11:25
![](https://img.aspxhome.com/file/2023/8/100858_0s.jpg)
网页设计进阶之一 (步骤和大局观)
2008-08-23 10:39:00
python 实现视频 图像帧提取
2023-12-30 19:29:40
Python中if语句的使用方法及实例代码
2022-03-24 07:17:04
![](https://img.aspxhome.com/file/2023/2/98922_0s.png)
Django URL传递参数的方法总结
2023-02-18 13:08:33
python实现多层感知器
2022-07-04 14:37:10
![](https://img.aspxhome.com/file/2023/8/91978_0s.jpg)
python中itertools模块使用小结
2023-08-07 18:44:32
python处理列表的部分元素的实例详解
2021-04-16 01:13:05
Python 通配符删除文件的实例
2022-04-24 03:00:22
python return实现汇率转换器教程示例
2023-11-10 12:39:50
![](https://img.aspxhome.com/file/2023/3/63623_0s.png)