Skip to content

In _to_png, it'll be nicer to use driver.fullscreen_window() instead of using driver.maximize_window(). #1539

@liusida

Description

@liusida

Thank you for providing such a great tool. I was using folium to export some PNG images, and concatenating them into a video. However, the dimension of the exported PNG image is a little bit smaller than common dimensions like 1366x768.
I digged into the source code a bit and discovered that in function _to_png(), driver.maximize_window() was used. If I change this to driver.fullscreen_window(), the dimension of the exported PNG will be the resolution of the (imaginary) screen, like 1366x768.

driver.maximize_window()

This could be a minor improvement.

And btw, does anyone know how to control the (imaginary) screen resolution? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions