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

Image is not getting captured correctly #29

Open
sam4u3 opened this issue Apr 29, 2023 · 2 comments
Open

Image is not getting captured correctly #29

sam4u3 opened this issue Apr 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sam4u3
Copy link
Collaborator

sam4u3 commented Apr 29, 2023

Describe the bug
image not getting capture correctly

Full Image
image

  1. Horizontal cut
    image

  2. vertical cut
    image

@sam4u3 sam4u3 added the bug Something isn't working label Apr 29, 2023
@sam4u3 sam4u3 pinned this issue Apr 29, 2023
@ezhkovskii
Copy link

I have the same problem when I try to take a screenshot of the mobile version of the site.

driver.get_screenshot_as_file(file_name) - this method saves a screenshot in one format, and this method stitched_image = Image.new('RGB', (total_width, total_height)) creates a template for a future image in another format (smaller sizes). When this method stitched_image.paste(screenshot) works, then the original screenshot that the driver made is stupidly cut off.

@sam4u3 any ideas?

@eXtizi
Copy link

eXtizi commented Jun 22, 2023

same problem with element capturing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants