Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for New Lighthouse Audit: Vector Image Optimization #16285

Open
LarsFlieger opened this issue Dec 14, 2024 · 2 comments
Open

Request for New Lighthouse Audit: Vector Image Optimization #16285

LarsFlieger opened this issue Dec 14, 2024 · 2 comments
Assignees

Comments

@LarsFlieger
Copy link

Feature request summary

I propose adding a new audit to Lighthouse that identifies images that could potentially be vector graphics and estimates the potential savings in file size and performance if these images were converted to vector formats.

What is the motivation or use case for changing this?
Many websites use pixel-based images for elements that are inherently vector in nature, such as logos, icons, and simple illustrations. Converting these to vector formats like SVG can significantly reduce file sizes and improve scalability, leading to better performance and user experience.

How is this beneficial to Lighthouse?

  • Reduced page load times and bandwidth usage
  • Improved scalability of images across different device sizes
  • Better overall performance scores in Lighthouse
@adamraine
Copy link
Member

Using vector images is something devs should always consider, but outside of some advanced image analysis I don't see how we can recommend this on a case-by-case basis. I don't think we can do more than just mention this as a possibly strategy in our docs, which we already do.

@LarsFlieger
Copy link
Author

Using vector images is something devs should always consider, but outside of some advanced image analysis I don't see how we can recommend this on a case-by-case basis. I don't think we can do more than just mention this as a possibly strategy in our docs, which we already do.

Yes, checking if an pixel image is an vector based image is a difficult task, and I’m also unsure which method or algorithm could solve this problem efficiently enough to be integrated into Lighthouse. However, I think this feature should be considered with further investigation because its benefits could be significant.

Perhaps this should be implemented on a different platform, where integrating some form of AI to solve this problem might also be feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants