Orpington Astronomical Society

Back Room => Updates and Upsets => Topic started by: Rick on Jul 10, 2003, 18:58:00

Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 18:58:00
I was rummaging through web logs, and I noticed that quite a few browsers seem to ask, for no obvious reason, for a file called favicon.ico. I presume it's some sort of icon file, but can anyone tell me:

* what it's for.
* what type of image format it should be in.
* what size it should be.

I notice it always seems to be requested from the root directory of a (virtual) host, so the common one at the moment is http://gal.orpington-astronomy.org.uk/favicon.ico (which doesn't exist).
Title: What is favicon.ico ?
Post by: Ian on Jul 10, 2003, 20:01:00
good old google :smile:

http://www.webdevelopersjournal.com/articles/favicon.html

it is the icon that appears instead of the generic document one before the URL on the taskbar.

Perhaps if we had one, the messages would disappear... it has to be 16x16.

Ian
Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 20:31:00
Ah. "and it works only in Explorer 5 and above" Should have realised it'd be one of those Microsoft "standards". The rest of us get lumbered with the fall-out.... :wink:
Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 20:54:00
For a 16x16 icon, they seem to be somewhat seriously overblown, size-wise. Even at 32-bits per pixel a 16x16 icon really shouldn't work out at more than 1024 bytes of raw data. 16x16 using only 16 colours should be only 128 bytes. The ones from Google and The Register are 1406 bytes. The one from Celestrak is 2238 bytes. Oh, and Microsoft.com doesn't appear to have one. Typical! ;>
Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 21:04:00
Ah.... Some tricks for unix types like me:
http://www.mavetju.org/unix/favicon.php

http://www.winterdrache.de/freeware/png2ico/favicon.html

:wink:

[ This Message was edited by: Rick on 2003-07-10 13:10 ]
Title: What is favicon.ico ?
Post by: Ian on Jul 10, 2003, 21:08:00
actually reading the article, it appears it absolutely has to be 16x16 unless you want to use a larger one.

Answers on a postcard to the usual address...
Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 21:14:00
That'd be Bill, Redmond WA, USA. Yes? :wink:

Don't forget, to play by the same spirit you need to stick your postcard to a house-brick and send it un-stamped.... :wink:
Title: What is favicon.ico ?
Post by: Ian on Jul 10, 2003, 21:58:00
ouch! I hope I never upset you :wink:
Title: What is favicon.ico ?
Post by: Rick on Jul 10, 2003, 22:24:00
Bill in Redmond can afford it.... :wink:
Title: What is favicon.ico ?
Post by: Rick on Jun 24, 2004, 02:26:00
Ah... Trust the logic for finding favicon.ico files to be brain-dead...

There I was, assuming it would do something logical and well-mannered, like looking for favicon.ico in the same directory as the index.html file...

But no. It goes to the root directory for the site first. Then it seems it just gives up. :/

So http://www.chocky.demon.co.uk/oas/favicon.ico might as well not be there, as the only place it bothers looking is http://www.chocky.demon.co.uk/favicon.ico :sad:

Oh well...