Full size screenshot truncated at the height of 16384px
Reported by
myakura....@gmail.com,
May 8 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3091.0 Safari/537.36 Steps to reproduce the problem: 1. open a page that is too long (eg. https://app.codegrid.net/entry/flexiblebox-1 ) 2. open DevTools and turn on the Device Mode 3. select "capture full size screenshot" from the kebab menu What is the expected behavior? Chrome captures a screenshot whose width and height are the same as the ones the page has. What went wrong? Chrome captures a screenshot and its width is the same as that of the page; however it's truncated so the height of the screenshot is 16384px. Did this work before? N/A Chrome version: 60.0.3091.0 Channel: canary OS Version: OS X 10.12.4 Flash Version: 16384 = 0x4000 so I guess DevTools intentionally or unintentionally set the maximum height (and width, I assume) in pixels.
,
May 9 2017
Able to reproduce the issue on the latest canary(60.0.3093.0) and the latest stable(58.0.3029.96) on Windows-10, Mac OS 10.12.3 and Linux Ubuntu 14.04 as well. 'capture full size screenshot' is added recently and is not seen on 55.0.2883.95 hence marking this as Untriaged and as non-regression issue for more inputs on this.
,
May 16 2017
Able to reproduce as well. dgozman@, could you please take a look?
,
May 16 2017
This is an implementation limitation deep inside Chrome. I doubt we are going to change that, but I'll leave this bug around in case something changes.
,
Jun 27 2017
,
Jun 27 2017
Can Chrome at least show a warning if the screenshot was truncated? Current silent treatment of failure is a bad UX.
,
Jun 27 2017
+1 to updating the UX to alert users to this limitation Maybe the menu option / command menu option can say "max height: 16384px", or DevTools logs a warning to the Console when it detects that window.innerHeight > 16384
,
Jun 27 2017
Derp, window.innerHeight only captures viewport height You get the idea :)
,
Jul 22 2017
Is there way to capture a screenshot that has height over 16834px with devtools protocol? According to below comment, Emulation.forceViewPort() and multiple capturing is solution for this problem. https://groups.google.com/a/chromium.org/d/msg/headless-dev/DqaAEXyzvR0/P9zmTLMvDQAJ But Emulation.forceViewPort() was obsoleted recently. So I've tried clip parameter in captureScreenshot(), unfortunately it doesn't works for me.
,
Jul 29 2017
My problem was solved. clip parameter works with page that has height over 16384px. maybe I had been taking a mistake. Thanks.
,
Dec 11 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ajha@chromium.org
, May 9 2017