New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 719334 link

Starred by 7 users

Issue metadata

Status: Assigned
Owner:
Last visit 29 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Full size screenshot truncated at the height of 16384px

Reported by myakura....@gmail.com, May 8 2017

Issue description

UserAgent: 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.
 
app.codegrid.net-entry-flexiblebox-1.png
1.7 MB View Download

Comment 1 by ajha@chromium.org, May 9 2017

Labels: Needs-Triage-M60

Comment 2 by ajha@chromium.org, May 9 2017

Cc: ajha@chromium.org
Labels: -Needs-Triage-M60 M-60 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
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.

Comment 3 by l...@chromium.org, May 16 2017

Owner: dgozman@chromium.org
Status: Assigned (was: Untriaged)
Able to reproduce as well.  dgozman@, could you please take a look?
Owner: ----
Status: Available (was: Assigned)
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.
Cc: kkaluri@chromium.org ligim...@chromium.org
 Issue 736478  has been merged into this issue.

Comment 6 by woxxom@gmail.com, Jun 27 2017

Can Chrome at least show a warning if the screenshot was truncated? Current silent treatment of failure is a bad UX.
+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
Derp, window.innerHeight only captures viewport height

You get the idea :)

Comment 9 by dotn...@gmail.com, 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.
 

Comment 10 by dotn...@gmail.com, 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.
Owner: lushnikov@chromium.org
Status: Assigned (was: Available)

Sign in to add a comment