Skip to content

Support saving screenshots in WebP #209

Closed

Description

@simonw

WebP is a really good format for screenshots.

Activity

  1. simonw commented on Sep 13, 2026

    @simonw
    OwnerAuthor

    Playwright has supported it since v1.62:

    We currently require 1.61 or higher:

    "playwright>=1.61.0",

  2. simonw commented on Sep 13, 2026

    @simonw
    OwnerAuthor

    Our --quality feature currently forces JPEG, but it should work for WebP too:

    if output is None:
    ext = "jpg" if quality else None
    output = filename_for_url(url, ext=ext, file_exists=os.path.exists)

  3. linked a pull request that will close this issueWebP support, refs #209 #210on Sep 13, 2026
  4. added a commit that references this issue on Sep 13, 2026
    d457df5
  5. added 2 commits that reference this issue on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions