New issue
Advanced search Search tips

Issue 854013 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Request for new CLI flag for --headless --screenshot: --full-page

Reported by nikiswee...@gmail.com, Jun 19 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.25 Safari/537.36

Steps to reproduce the problem:
Not a problem, request for a new feature.

What is the expected behavior?
Passing the flags as follows:

chromium-browser --headless --screenshot --window-size=1440,1200 --full-page

Should have the effect of setting the viewport size to 1440x1200 initially, but if the page is longer than 1200px, it should screenshot the full page instead, exactly like puppeteer's fullPage option in the screenshot API.

This API would prove incredibly useful for general screenshot testing, and for web archiving purposes here: https://github.com/pirate/bookmark-archiver

Current solutions require installing chromium via puppeteer and using its node API, instead of using already installed versions of chrome with CLI flags, which would be much simpler for many users.

What went wrong?
Not a problem, request for a new feature.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 68.0.3440.25  Channel: beta
OS Version: OS X 10.13.6
Flash Version:
 
To be exact, the behavior should match this puppeteer gist example:
https://gist.github.com/pirate/983322a361416dc630752476ef435b1c

Which uses this page.screenshot puppeteer API option `fullPage`:
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagescreenshotoptions
Labels: Needs-Triage-M68
Cc: vamshi.kommuri@chromium.org
Components: Internals>Headless
Labels: -Type-Bug Triaged-ET M-69 Target-69 FoundIn-69 OS-Linux OS-Windows Type-Feature
Status: Untriaged (was: Unconfirmed)
Thanks for filing the issue!

From comment#0 it's very clear that the issue seems to be a feature request rather than a bug, hence marking the status as Untriaged and changing the type to Feature. Requesting someone from Dev team to have a look into this issue.
Note: Tentatively adding component "Internals>Headless" please change if this isn't apt.
Bumping this because it's still a highly requested feature in the internet archiving community, it would be great to be able to get full page screenshots without needing to install a whole node environment and puppeteer.

Thanks!

Sign in to add a comment