I have created a nice multiresolution favicon.ico containing 16x16, 32x32, & 48x48 resolution icons. These load up all pretty-like within browsers or when the site is saved to the desktop.
However, the same image is also being used on the website (specifically, as an icon within a toolbar). Currently, the 16x16 icon is also saved as a png in order to display it within the webpage itself.
This seems like unnecessary redundancy to me. I would like to display the favicon.ico itself on the page and delete the png.
However, simply selecting the ico file causes the largest-resolution file within the .ico container to be displayed (only tested in Ghrome for Mac).
Can I select an individual icon within the .ico container? It would be great if this had a <img src="favicon.ico:16"/>
-type syntax.
If this isn't supported by the majority of browsers, perhaps it would be possible to parse the .ico file with javascript and select the correct chunk of data to display? I don't really feel like doing this, but I'd like feedback on whether it's even possible.
Thanks.