python - Is there any way to make PIL's ImageGrab.grab() save photos with a small size?
问题描述
I'm using PIL with Python 3.8 to make screenshots of my screeen but the size of them is too large. How can I reduce it?
解决方案
您可以Image.resize()
在保存之前使用缩小图像。
推荐阅读
- api - 由于单个 IP 的多个 DNS 条目,在 Kerberos 数据库中找不到服务器
- typescript - 打字稿递归包含,递归选择
- ontology - 在 Protege 中推断逆属性
- html - Atom 自动完成添加 <
- vb.net - 根据另一个类调用的下载显示进度条
- spring-webflux - 生成将函数应用于 Reactor Flux 的两个连续元素的元素
- swift - FireStore - 在数组中搜索值
- powershell - PS:在File1中定义多个变量,读取File2,将File1中的所有标签替换为File2中的变量
- javascript - 无法渲染两个函数
- python - 在 Python 中使用正则表达式选择所有排列而不重复