Skip to content

High resolution screenshots #376

@markusjohnsson

Description

@markusjohnsson

I'm trying to automate creating screenshots for documentation, but I have an issue with getting the right resolution. Below are two screenshots of the same playwright-cli open --headed https://en.wikipedia.org/wiki/Main_Page session:

Created with macOS screenshot shortcut:

Image

Created with playwright-cli screenshot e362:

Image

As you can see the macOS screenshot is higher quality, in fact it is double the resolution.

I find no way of controlling the resolution of screenshots with playwright-cli, is it possible?

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