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 as AVIF images

See original GitHub issue

According 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:

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:open
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
tomByrercommented, Jun 3, 2021

@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?

2reactions
simisoncommented, May 18, 2021
Read more comments on GitHub >

github_iconTop 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 >

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