Save Screenshots in WEBP Image Format
See original GitHub issueAccording 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:
- Created 4 years ago
- Reactions:20
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@Lonniebiz Awesome! Happy to help 😃 Feel free to create a pull request for AVIF as soon as it’s available 😃