Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Wanyor opened this issue Jan 7, 2021 · 3 comments
Closed

Comments

@Wanyor
Copy link

Wanyor commented Jan 7, 2021

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

Then, i have some sugguests:

General information:

  • OS name: Windows
  • OS version: 10.0.19041.685
  • OS architecture: 64 bits
  • Resolutions:
    • Monitor 1: 1366x768
    • Monitor 2: 1920x1080
  • Python version: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] on win32
  • MSS version: 6.1.0

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
Copy link
Owner

BoboTiG commented Jan 7, 2021

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
Copy link
Author

Wanyor commented Jan 7, 2021

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

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 7, 2021

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 :)

@BoboTiG BoboTiG closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants