Skip to content

Grab and save a scrollable canvas including the invisible part #8680

Answered by radarhere
AdrianPhil asked this question in Q&A
Discussion options

You must be logged in to vote

ImageGrab.grab() is currently based on capturing what is visible on the screen, yes.

In order do what you're describing - capture content that isn't visible in the window, but comes from part of the canvas hidden by scrollbars - my suggestion would be to programmatically scroll to the different parts of the canvas, take screen grabs of each of them, and then combine the result using Pillow.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AdrianPhil
Comment options

Answer selected by AdrianPhil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants