Skip to content

Last part of the screenshot is duplicated #23

@agsoto

Description

@agsoto

Bug description
There's a tiny miscalculation when pasting the last part of the image when the last remaining step of the scroll does not fit the entire viewport.

To Reproduce
Steps to reproduce the behavior:

  1. Create a instance of the Screenshot class
  2. Call the full_screenshot method setting the multi_images flag to true
  3. See the resulting image

Expected behavior
The image should not have repeated parts it should be visualized as the regular webpage in the browser.

Screenshot

Bad screenshot

Desktop

  • OS: Windows 11
  • Browser: Chromium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions