NO BUG: Polylang flag error in google lighthouse

Browser: Chrome 127.0.6533.89
OS: Windows

Hi bricks team,

If we increase the size of the flag to 20px or more in the language change element, the error Serves images with low resolution will be taken in Google Lighthouse. But if we leave the flag size value empty, the error will be fixed.
This is a bug on polylang’s part, right?

Hi Hosein,
Thanks so much for your report!

Polylang’s default flags have an intrinsic size of 16x11 px. Since they are not SVGs, they will be pixelated when scaled up.

You can use custom flags in different file formats if you want to:
https://polylang.pro/doc/can-i-use-my-own-flags-for-the-language-switcher/

Best regards,
timmse

Hi,
thank you timmse, The problem was solved. Thanks for sharing the link❤️