BoboTiG / python-mss

An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.
https://pypi.org/project/mss/
MIT License
998 stars 88 forks source link

Save compress time, so i sugguest decrease default compression_level to 1 #199

Closed Wanyor closed 3 years ago

Wanyor commented 3 years ago

First, thank you very much for writing a very very useful library.

Then, i have some sugguests:

General information:

Description of the warning/error

I want to reduce every grab time, so i decrease default compression_level to 1(zlib compress level), it works,haha

Full message

Small is better

level 1:

image

level default(6): image

Other details

Share to somebody who was in need.

BoboTiG commented 3 years ago

I needed to pick a default value good for the speed and the file size. I found that 6 is a good start, it is also the default value in the zlib module.

You can easily change the value in your script and from the command line.

Wanyor commented 3 years ago

OK, thanks for your reply. Maybe screencapture was not good at RAT tool,haha. @BoboTiG

BoboTiG commented 3 years ago

Another way would be to use something else than PNG for the output file. Some format with a better compression / speed ration. But this is up to you to implement that :)