Get a higher resolution png from a favicon resource

533 Views Asked by At

I'm currently trying to display external sites' favicons on my site and I've noticed that unfortunately if I have a tag in my HTML <img src="https://example.com/favicon.ico"> then the image that is displayed on the page is the lowest resolution image stored in the .ico file. I was wondering if there was a simple way to specify that I want the highest quality image. This method is a fallback for when sites don't have a <link rel="icon" ... /> tag and I do know that I can use a library to read the .ico file but I just wanted to check if there was a quick and dirty solution. Thanks.

0

There are 0 best solutions below