Skip to content

Screenshot code attempts to capture incorrectly sized portion of the screen. #6

Description

@BlueNalgene

Describe the bug
The screenshot naively sizes the window area of interest based on the screen size, but this fails to account for the window limitations of the Raspberry Pi camera (16:9 resolution). If the computer screen is not 16:9 or if there is a rounding error, the screenshot area calculation will capture the wrong part of the screen, e.g. a 1px wide gap on the left and right sides of the area of interest.

Expected behavior
This calculation must be exact to prevent incorrect moon targeting.

Desktop (please complete the following information):

  • OS: [e.g. Raspbian]
  • Version [e.g. 10 or Buster (check output of cat /etc/os-release)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions