xiphux / svimg

Svelte image component with image preprocessing and lazy loading
ISC License
243 stars 15 forks source link

Lighthouse audit reports incorrect aspect ratio for placeholder #21

Open mcmxcdev opened 2 years ago

mcmxcdev commented 2 years ago

Screenshot from 2022-05-21 20-57-14

xiphux commented 2 years ago

I'll take a look - I'm guessing the small difference is due to rounding somewhere (either in the placeholder generation from sharp or the attributes on the img). The difference is pretty small though so it's probably not very perceptible.

mcmxcdev commented 2 years ago

Sounds like it could be rounding issues yeah!

I don't worry much about the dimension, but about the lower Lighthouse score, which are often business requirements.