Skip to content

The selected region seems to have a bit of an issue. #26

@xiaohuirong

Description

@xiaohuirong

I use wf-info to obtain the region information of the window, and then pass it to wl-screenrec. I've noticed that there seems to be an unexpected border on the left side. However, when I use wf-recorder to record the same region, I don't encounter this issue.
2023-09-08_23:22:48

I can't guarantee whether wf-info has obtained the correct region, so I generated a pure black image with a resolution of 2560x1440, which matches my screen. I then added a white line at the pixel positions x=99, x=198, y=99, and y=198 on the image.
black_wallpaper_with_white_line

Then, I recorded the (99,99 100x100) region separately using wl-screenrec and wf-recorder. In theory, there should have been a white pixel border in the recording. wf-recorder indeed captured it, while wl-screenrec seemed to have a bit of an issue, as shown in the following image.
2023-09-09_00:07:06

I then attempted to use wl-screenrec to record the (100,100 100x100) region to see if it was a simple offset issue. The result is as follows, the image dimensions are indeed 100x100 but it appears that it's not just a matter of offset.
2023-09-09_00:09:42

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions