Re:How We Got the Favicon (2017)
by im3w1l on Monday August 10, 2020 @12:12PM
(#24110807)
A nice thing about the initial ico-format is that it can contain multiple resolutions. Nowadays you will see multi-res using separate files but that took a long time to happen.
[ Parent
| on HN ]
Re:How We Got the Favicon (2017)
by scrollaway on Monday August 10, 2020 @12:32PM
(#24111066)
Indeed, I think ICO is the only common-use format to support that (I guess JPEG "sort of" does support it but not in any usable multi-resolution way).
Mipmaps are common in video game graphics format though!
macOS's .icns files (typically used for app icons) can (and usually do) also store multiple resolutions in a single file.
> common-use format
Pretty much nothing outside the apple ecosystem supports .icns
I believe that with svg, you can have multiple breakpoints and style rules depending on canvas size.
You can set the shortcut icon meta tag to point to a fairly big (256x256) png file, and all modern browsers will re-scale it for use where-ever needed.
The only place where I've seen multiple sizes needed was for SPAs on mobile phones etc. and that's a whole different set of tags.
Sometimes you want more control over the low-res result than a re-scale will give.
Re:How We Got the Favicon (2017)
by kevin_thibedeau on Monday August 10, 2020 @06:02PM
(#24114542)
Use SVG with CSS media queries.