News for hackers. Stuff that matters.
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.
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!

Re:How We Got the Favicon (2017) by Ivoah on Monday August 10, 2020 @02:22PM (#24112357)
macOS's .icns files (typically used for app icons) can (and usually do) also store multiple resolutions in a single file.
Re:How We Got the Favicon (2017) by account42 on Tuesday August 11, 2020 @10:51AM (#24120861)
> common-use format

Pretty much nothing outside the apple ecosystem supports .icns

Re:How We Got the Favicon (2017) by treve on Monday August 10, 2020 @03:37PM (#24113172)
I believe that with svg, you can have multiple breakpoints and style rules depending on canvas size.
Re:How We Got the Favicon (2017) by Jaruzel on Monday August 10, 2020 @12:15PM (#24110835)
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.

Re:How We Got the Favicon (2017) by im3w1l on Monday August 10, 2020 @12:23PM (#24110950)
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.
Re:How We Got the Favicon (2017) by TeMPOraL on Tuesday August 11, 2020 @02:06AM (#24117582)
At the scales we're taking about, bitmap image is both faster and smaller than equivalent SVG & CSS with media queries.