Screeshot capture window dimension limit

173 views
Skip to first unread message

exas...@gmail.com

unread,
Dec 17, 2017, 5:56:10 PM12/17/17
to headless-dev
HI All,

I have a peculiar requirement to take screenshot of a page where height of a page can exceed 16384. I am using chrome driver 2.34 (32-bit) and Chrome browser 63.0 (64-bit) headless on a Windows machine (64-bit). I am taking a screenshot of dendrogram tree produced using html on a web page. However, when the screenshot is taken I find that the maximum height of the image is 16384 pixels. It crops the rest of the image height. The requirement is to capture the whole image where width = 600 and height up to 32768. Is there a known limitation with screenshots? The chrome driver log does not complain on height, but the image returned in cropped. Is this the problem with window resize or screenshot?

Here is snippet from chromedriver log
[3.550][DEBUG]: DEVTOOLS RESPONSE Browser.getWindowForTarget (id=5) {
   "bounds": {
      "height": 1080,
      "left": 0,
      "top": 0,
      "width": 1920,
      "windowState": "normal"
   },
   "windowId": 1
}
[3.550][DEBUG]: DEVTOOLS COMMAND Browser.setWindowBounds (id=6) {
   "bounds": {
      "height": 21050,
      "width": 600
   },
   "windowId": 1
}
[3.554][DEBUG]: DEVTOOLS RESPONSE Browser.setWindowBounds (id=6) {

}
[3.668][INFO]: RESPONSE SetWindowSize
[3.677][INFO]: COMMAND GetWindowSize {
   "windowHandle": "current"
}
[3.677][DEBUG]: DEVTOOLS COMMAND Browser.getWindowForTarget (id=7) {
   "targetId": "(41788ACA4A11684AED3426D61E045403)"
}
[3.679][DEBUG]: DEVTOOLS RESPONSE Browser.getWindowForTarget (id=7) {
   "bounds": {
      "height": 21050,
      "left": 0,
      "top": 0,
      "width": 600,
      "windowState": "normal"
   },
   "windowId": 1
}


Appreciate any help on this

GB

dvallet (Chromium)

unread,
Dec 17, 2017, 6:17:24 PM12/17/17
to exas...@gmail.com, headless-dev

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/b8c0d0fe-adb3-4b9f-a01d-3dc3e92cbb97%40chromium.org.

exas...@gmail.com

unread,
Dec 17, 2017, 6:26:53 PM12/17/17
to headless-dev, exas...@gmail.com
Thanks very much for your reply
Reply all
Reply to author
Forward
0 new messages