-
Notifications
You must be signed in to change notification settings - Fork 9k
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
page.screenshot clip not working correctly, fullPage is ok #5410
Comments
same problem like this post #5300 |
I wounder if clipping is based on available image after screenshot is taken. So it may be the image is lets say 100x100 and you try to clip a region outside this region at X and Y > 100. While fullPage image is larger??? Not sure but i am guessing here. I have an issue with fullPage changing the actual viewport size and therefore elements are not where expected. See my issue #5411. I wounder if you or anyone else found the same? |
I have the same issue,
|
I just updated from puppeteer 1.XX to puppeteer 5.00 and realised that the clip function doesn't work as before. It'll always take the viewport height unless we set the viewport height to the content height. But this doesn't work in some cases. I've been using the clip function for at least 2 years and never got any issue. Now I can't update to the latests releases because of this. Does someone found and alternative solution to take fullsize screenshot with the clip function? |
Literally just made the same jump and having the same problem. All of our automated screenshot tests took screenshots bound by a clip selector. Previously setting Now it looks like the viewport size is limiting what the screenshot can take, even if a clip is specified. To get around this, we set an arbitrarily high edit: And realizing now this doesn't fix all cases, of course, but it's workable. |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
i have 2 pages content, and try to capture into 2 PNGs
when i set fullPage,it works fine
however, when i try to set clip:{x:0,y:1000,width:1000,height:1000} and going to capture the second page, i got a empty content. that's wired. even i try to set clip clip:{x:0,y:0,width:2000,height:2000} and going to capture a whole content area, i still got only the first page content, what happen?
The text was updated successfully, but these errors were encountered: