-1

I came across an ICO file and since I didn't have Photoshop I had to open it in GIMP. Then I realized it has layers.

What is a layered ico file and when will I ever need it?

  • 1
    What resources did you look at? This shows 0 effort as is. – Zach Saucier Mar 27 '16 at 13:11
3

.ico files are commonly used as favicons for web sites and icons in Windows. You see how there is that little GDSE icon, on the tab, in your browser?

favicon

That is called "favicon.ico" and saved in the web server's main directory, usually "/public_html".

From Wikipedia:

The ICO file format is an image file format for computer icons in Microsoft Windows. ICO files contain one or more small images at multiple sizes and color depths, such that they may be scaled appropriately.

And about favicons:

A favicon...also known as a shortcut icon, website icon, tab icon, URL icon or bookmark icon, is a file named favicon.ico and containing one or more small icons, most commonly 16×16 pixels, associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by several means, and graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's address bar (sometimes in the history as well) and next to the page's name in a list of bookmarks.

Essentially, your ICO file is capable of storing several different sizes of the same icon in one file. This means that you can have 16x16, 24x24, 32x32, etc. versions of your icon all stored in the one file. I'm not an expert on the ICO file format, but I imagine that this is what results in your "layers".

| improve this answer | |
  • .ico files are most commonly used for Windows file icons as far as I'm aware? – Cai Mar 28 '16 at 16:50
  • @CAI Possibly. I guess I just always know them from a web design perspective – Manly Mar 28 '16 at 20:15
  • As far as I'm aware all windows file icons have to be .ico format whereas favicons can be .ico or .png or .gif etc. So I would say Windows file icons are the most common use – Cai Mar 28 '16 at 20:22
  • @CAI Chrome, Firefox, Opera 7+, and Safari 4+ all accept PNG favicons, but Chrome and Safari will opt to use the ICO version, when both are present. Additionally, ICO files can contain icons at several sizes, whereas a PNG or GIF will need to have several different versions for each size saved and then a <link> in the header for each one. So yea, favicons can be PNG or GIF, but it's usually easier to use one ICO instead of linking a ton of PNGs, which is probably why ICO has been the standard pretty much since the beginning. PNG offers minor quality improvements, but barely noticeable. – Manly Mar 28 '16 at 20:31
  • I agree with you, ico is the better option for favicons. My point was just that it isn't only used for favicons :) – Cai Mar 28 '16 at 20:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.