question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Save Screenshots in WEBP Image Format

See original GitHub issue

According to the 2.0 documentation, a page instance has a screenshot method that accepts an object where you can set the type property (which is the image format) to either png or jpeg.

These days, instead of png or jpeg I try to use the webp image format as much as possible: https://developers.google.com/speed/webp

Please add support for saving screenshots in the webp image format. This would also require making the quality option-property applicable to webp (in addition to its [currently exclusive] support for jpeg), allowing you to set the quality of a webp screenshot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:20
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
jonchurchcommented, Sep 13, 2021

It seems that webp is supported now by chrome https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-captureScreenshot.

quality is still jpeg only on the browser end, so that part of this request still can’t be implemented.

I have a branch with webp screenshots working, haven’t written tests for it yet.

0reactions
jschfflrcommented, Sep 29, 2021

@Lonniebiz Awesome! Happy to help 😃 Feel free to create a pull request for AVIF as soon as it’s available 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Save Google's WEBP Images as JPEG or PNG
Right-click or long-press the image, and then select the “Save image as” option. That downloads it in the original format — just like...
Read more >
Top 4 Ways to Save WebP as JPG or PNG on Windows ...
Top 4 Ways to Save WebP as JPG or PNG on Windows and Mac · Step 2: Click on File in the menu...
Read more >
Take a screenshot and save it in WebP format on Arch
Imagemagick lets you save images in whatever image format it supports. The command below takes a screenshot of the entire screen, and saves...
Read more >
3 Easy Ways to Save WebP Images as JPEG or PNG Format
It will give you the option to save the photo in JPG format by going to File and then clicking on Save. It...
Read more >
Convert and Save WebP to JPG or PNG
What is WebP Image Format? · 1) Using Google Chrome Browser Or Mozilla Firefox Browser · 2) Using Microsoft Edge Browser · 3)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found