scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.09k stars 513 forks source link

Splash screen resoltion #979

Open chinmayjatana opened 4 years ago

chinmayjatana commented 4 years ago

Is there any way to change splash screen resolution . It is always 1024 x 768

Gallaecio commented 4 years ago

viewport?

chinmayjatana commented 4 years ago

viewport is browser window size and I am referring to screen size or screen resolution .

In java script we can fetch screen width with : window.screen.width In java script we can fetch browser window width with : $(window).width();

chinmayjatana commented 4 years ago

Hi @Gallaecio . Do you have any idea of how to alter screen resolution

kmike commented 4 years ago

Could you try starting Splash with a different --xvfb-screen-size value? See https://github.com/scrapinghub/splash/blob/76e4385aa80ec050f6c5ba50a4df3b7436487828/splash/server.py#L51