WebFaction
Community site: login faq

https://developers.google.com/web/updates/2017/04/headless-chrome

Can we do execute this on Webfaction servers ? I would like to run this in PHP - exec($cmd); $cmd being either of :

chrome --headless --disable-gpu --screenshot --window-size=1280,1696 https://www.chromestatus.com

chromium-browser --headless --disable-gpu --window-size=1280,1696 --screenshot https://www.chromestatus.com

asked 06 May, 06:37

anjanesh's gravatar image

anjanesh
56615
accept rate: 25%


You would have to build Chrome from source. Building chrome from source is a long process. You may also do what you want with a library like HTML2Canvas.

permanent link

answered 06 May, 21:47

johns's gravatar image

johns ♦♦
4.8k29
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×4

question asked: 06 May, 06:37

question was seen: 305 times

last updated: 06 May, 21:47

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM