[英]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.我在 Python 3.8 中使用 PIL 来制作屏幕截图,但它们的大小太大了。 How can I reduce it?
我怎样才能减少它?
您可以使用Image.resize()
在保存之前缩小图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.