GithubHelp home page GithubHelp logo

favicontest's Introduction

FaviconTest

A simple HTML page to experiment with favicon and check the results using different browsers.

Obsolete: use https://realfavicongenerator.net/

Resources:

How to install and run the server

You need Node.js

npm install
npm run gulp serve
open http://localhost:8080

Generate .ico file

# Create an ICO image using ImageMagick
convert ico-16.png ico-32.png ico-48.png 16-32-48.ico

What about "...?v=1"?

It forces the browser to refresh the favicon. Increment the number whenever you change the icons otherwise you will have false results.

Results

Chrome

  • OS X/Chrome 38: ico-16.png (tab + bookmark)
  • Android 5.0.1/Chrome 40: 192.png (tab), 152-background.png (bookmark), 152-background.png rounded (manifest.json) (homescreen)

Firefox

  • OS X/Firefox 33.1: 192.png (tab + bookmark)
  • Android 5.0.1/Firefox 35.0.1: 192.png (address + bookmark + homescreen)

IE

  • WinXP/IE6: ico-16.png (favorites)
  • Win7/IE9: ico-16.png (tab + address + favorites)
  • Win7/IE11: 16.png (tab + address + favorites)
  • WinPhone 7.5/IE9: web site screenshot for the start screen, no tab nor favorite icon displayed
  • Win8.1/IE11 desktop: 16.png (tab + address + favorites)
  • Win8.1/IE11 modern UI/Metro: 16.png (tab + address), 144.png (favorites + start screen)

Safari

  • OS X/Safari 8.0.2: 192.png (address)
  • iPhone Retina 7.1/Safari: 152-background.png rounded (apple-touch-icon) (bookmark + add to home)
  • iPad Retina 7.1/Safari: 152-background.png rounded (apple-touch-icon) (bookmark + add to home)

Opera

  • OS X/Opera 12.15: 192.png (tab + speed dial + bookmark)

Recommendations

The declaration order does not seem to change anything

  • .ico file with 16x16, 32x32 and 48x48 transparent PNGs
  • Android: <link rel="icon" sizes="192x192" href="192.png"> + manifest.json 192x192 PNG with background, will be rounded by Android/Chrome
  • iOS: 152x152 apple-touch-icon (iOS), will be rounded by iOS
  • Windows 8 modern UI/Metro: msapplication-TileImage (+ msapplication-TileColor if the tile image does not have a background)
<link rel="shortcut icon" href="16-32-48.ico?v=1">

<link rel="icon" sizes="192x192" href="192.png?v=1">

<link rel="manifest" href="manifest.json?v=1">

<link rel="apple-touch-icon" sizes="152x152" href="152-background.png?v=1">

<meta name="msapplication-TileImage" content="144.png?v=1">
<meta name="msapplication-TileColor" content="#ccc">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.