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.

Image aspect ratio audit failed in pages with no images

See original GitHub issue

Hi!

I’ve been testing a webpage that contains no images, and Lighthouse is still reporting a failed audit on “Does not use images with appropiate aspect ratio”:

image

You can check it out in http://fontcuberta.cat

I even added the `sizes=“16x16” parameter in my favicon links, just in case.

thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
vinamratasingal-zzcommented, Jan 2, 2018

Hi @kemalcany - please follow the fix outlined above. I ran it with the Extension and 2.7.0 and it worked 😃

0reactions
kemalcanycommented, Jan 2, 2018

@vinamratasingal fantastic! You’ve added SEO too! Cool. Thank you very much!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Displays images with incorrect aspect ratio
Learn how to display responsive images with the correct aspect ratio. ... How the Lighthouse image aspect ratio audit fails.
Read more >
Expected Image Size is incorrect · Issue #10802 - GitHub
In the Best Practices audit, using Mobile mode, Lighthouse reports: Displays images with inappropriate size. Image natural dimensions should ...
Read more >
Using image aspect ratios to avoiding janky page loading
The problem is that the browser knows the width of the image as it's usually set to 100% , but the height has...
Read more >
Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >
Image file requirements - Hootsuite Help Center
Image file requirements ; Max file size, 5 MB (8 MB for GIFs), 8 MB ; Images per post, 4, 10 ; Aspect...
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