Save Screenshots as AVIF images
See original GitHub issueAccording to the 10.4.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 png, jpeg, or webp.
These days, instead of png, jpeg, or webp, I try to use the avif image format as much as possible:
- jakearchibald.com/2020/avif-has-landed/
- en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)
- https://caniuse.com/avif
- Convert images to AVIF using Squoosh
Please add support for saving screenshots in the avif image format. This would also require making the quality option-property applicable to avif (in addition to its current support for only jpeg and webp), allowing you to set the quality of a avif screenshot.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Useful Tools for Creating AVIF Images | CSS-Tricks
AVIF.io is an image tool that doesn't require any form of code. All you need to do is upload your selected images in...
Read more >What is AVIF? How to Use AV1 Image Format Images on Your ...
AVIF is an optimized image format which was created to make our images smaller while keeping the same quality (lossless). The file extension ......
Read more >How to take raw AVIF screenshots from AV1 sources: a guide!
As per the title of the post, this post involves taking raw AV1 keyframes and muxing them into an AVIF stream using the...
Read more >Web developer's guide to AVIF images - Darek Kay
AVIF (AV1 Image File Format) is a royalty-free image format that usually performs better than other popular alternatives (JPEG, PNG, WebP).
Read more >Using Modern Image Formats: AVIF And WebP
Images can be up to ten times smaller than JPEGs of similar visual quality. Some tests have shown that AVIF offers a 50%...
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

@Lonniebiz In my pixel diffs, Firefox is worse at color-shifting vs Canary.
@simison Good suggestion! But I wonder if AVIF or JpegXL are better compression for the CPU?
Related, saving files in WebP format: https://github.com/puppeteer/puppeteer/issues/5348#issuecomment-629238838