combined monitor image and mss().monitors incorrect
See original GitHub issueGeneral information:
- OS name: Windows 10
- OS version: 10.0.17134.523
- OS architecture: x64
- Resolutions:
- Monitor 1: 1600x900
- Monitor 2: 1920x1080
- Python version: 3.7.0
- MSS version: 4.0.1
The combined monitor image is rendering incorrectly and (because?) the monitors property returns invalid results.
If you look at my output from print(sct.monitors)
you will see the results are impossible:
[{'left': 0, 'top': -172, 'width': 3520, 'height': 1252}, {'left': 0, 'top': 0, 'width': 1600, 'height': 900}, {'left': 1600, 'top': -172, 'width': 1920, 'height': 1080}]
If I understand correctly, this output is saying that monitor 2 lies outside of the combination of all monitors together, which of course is impossible. I think this is what causes the 172-pixel black bar along the bottom of the image.
I think the correct output of mss().monitors should be:
[{'left': 0, 'top': 0, 'width': 3520, 'height': 1080}, {'left': 0, 'top': 172, 'width': 1600, 'height': 900}, {'left': 1600, 'top': 0, 'width': 1920, 'height': 1080}]
here is a screenshot of my monitor position in windows display manager:
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (10 by maintainers)
Top GitHub Comments
If I’ll have some time I will work on a fix. Shouldn’t be hard to do.
I was right. I was able to work around the windows bug like this: