Skip to contentSkip to conversation

Add a favicon.ico file

PATCH In review Thomas Huth 4 participants 12 messages Jul 26, 2017 – Jul 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a favicon.ico file

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

---
If I've got the Jekyll magic right, it should be enough to create this file in the top of the repository, right? Or do we need to mark this in one of the configuration files, too?

 favicon.ico | Bin 0 -> 1150 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 favicon.ico
favicon.ico new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f22440604f92468c7102b1293bcc59426f0e5bbd
GIT binary patch
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 10 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

---
If I've got the Jekyll magic right, it should be enough to create this file in the top of the repository, right? Or do we need to mark this in one of the configuration files, too?

The icon appears in the built site, but I don't see it if I test this locally with "jekyll serve".

It doesn't hurt really, so go ahead and push it. :)

Paolo

Quoted 27 lines
 favicon.ico | Bin 0 -> 1150 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 favicon.ico
favicon.ico new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f22440604f92468c7102b1293bcc59426f0e5bbd
GIT binary patch
#2 lore raw
In reply to Thomas Huth
Quoted 6 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

FYI, just having a single 'favicon.ico' file isn't generally sufficient anymore. Thanks to explosion of mobile devices there are 20+ different files that various browsers / clients look for now :-(

https://realfavicongenerator.net/faq

That site thankfully has ability to generate you all the various required files + HTML snippet to make it work, if you just upload a large (260x260 px) image.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#3 lore raw
Quoted 11 lines · Daniel P. Berrange
Quoted 6 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

FYI, just having a single 'favicon.ico' file isn't generally sufficient anymore. Thanks to explosion of mobile devices there are 20+ different files that various browsers / clients look for now :-(

Well, yeah, but most of that is just sick. Adding things like '<link rel="apple-touch-icon" .../>' to your web site is IMHO just how it should *not* be done.
If we're afraid that the 16x16 pixel icon is not enough, I think we should add an additional SVG icon, smile at the browsers that support it and wait for the others to catch up.

Thomas

#4 lore raw
Quoted 13 lines · Thomas Huth
Quoted 11 lines · Daniel P. Berrange
Quoted 6 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

FYI, just having a single 'favicon.ico' file isn't generally sufficient anymore. Thanks to explosion of mobile devices there are 20+ different files that various browsers / clients look for now :-(

Quoted 6 lines

Well, yeah, but most of that is just sick. Adding things like '<link rel="apple-touch-icon" .../>' to your web site is IMHO just how it should *not* be done.
If we're afraid that the 16x16 pixel icon is not enough, I think we should add an additional SVG icon, smile at the browsers that support it and wait for the others to catch up.

It has the advantage of working:

----------------- 8< -----------

Quoted 1 line

From ba78908efd551c514a5156a3882316df76bee2e4 Mon Sep 17 00:00:00 2001

From: Thomas Huth <[email protected]>
Date: Wed, 26 Jul 2017 15:27:30 +0200
Subject: [qemu-web PATCH 1/1] Add a favicon file

Most browsers try to download a /favicon.ico file or similar from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too.

The files and HTML were created with realfavicongenerator.net.

Message-Id: <[email protected]>

---
 _includes/assets.html                      |   9 +++
 assets/favicons/android-chrome-192x192.png | Bin 0 -> 23519 bytes
 assets/favicons/android-chrome-512x512.png | Bin 0 -> 69749 bytes
 assets/favicons/apple-touch-icon.png       | Bin 0 -> 15455 bytes
 assets/favicons/browserconfig.xml          |   9 +++
 assets/favicons/favicon-16x16.png          | Bin 0 -> 1356 bytes
 assets/favicons/favicon-32x32.png          | Bin 0 -> 2363 bytes
 assets/favicons/manifest.json              |  18 +++++
 assets/favicons/mstile-150x150.png         | Bin 0 -> 13296 bytes
 assets/favicons/safari-pinned-tab.svg      | 124 +++++++++++++++++++++++++++++
 favicon.ico                                | Bin 0 -> 15086 bytes
 11 files changed, 160 insertions(+)
 create mode 100644 assets/favicons/android-chrome-192x192.png
 create mode 100644 assets/favicons/android-chrome-512x512.png
 create mode 100644 assets/favicons/apple-touch-icon.png
 create mode 100644 assets/favicons/browserconfig.xml
 create mode 100644 assets/favicons/favicon-16x16.png
 create mode 100644 assets/favicons/favicon-32x32.png
 create mode 100644 assets/favicons/manifest.json
 create mode 100644 assets/favicons/mstile-150x150.png
 create mode 100644 assets/favicons/safari-pinned-tab.svg
 create mode 100644 favicon.ico
_includes/assets.html +9 -0
index 77c2942..3a526a4 100644
@@ -3,6 +3,15 @@
 	<meta name="keywords" content="" />
 	<meta name="viewport" content="width=device-width">
 	<link href='http://fonts.googleapis.com/css?family=Roboto+Mono:300,400%7cRoboto:300,400,500' rel='stylesheet' type='text/css'>
+
+	<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
+	<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
+	<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
+	<link rel="manifest" href="/assets/favicons/manifest.json">
+	<link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
+	<meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">
+	<meta name="theme-color" content="#ffffff">
+
 	<link rel="stylesheet" href="/assets/css/normalize.css" />
 	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />
 	<link rel="stylesheet" href="/assets/css/skel-noscript.css" />
assets/favicons/android-chrome-192x192.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..45c9ebcd29fb724e59fabfa1d8293cd9a8542c9b
GIT binary patch
assets/favicons/android-chrome-512x512.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..36c9dba81a9d41a5e91745e1dd167b976459504f
GIT binary patch
assets/favicons/apple-touch-icon.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..fbf5cc12c3cdf3dd833090fcbcdb99ae29365512
GIT binary patch
assets/favicons/browserconfig.xml new file +9 -0
new file mode 100644
index 0000000..a4b7a06
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<browserconfig>
+    <msapplication>
+        <tile>
+            <square150x150logo src="/assets/favicons/mstile-150x150.png"/>
+            <TileColor>#da532c</TileColor>
+        </tile>
+    </msapplication>
+</browserconfig>
assets/favicons/favicon-16x16.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..63fc2a2bc34a33306d498e669292127524e11ac6
GIT binary patch
assets/favicons/favicon-32x32.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..eedbe5a87075920f14148467f76feebd479c9bd1
GIT binary patch
assets/favicons/manifest.json new file +18 -0
new file mode 100644
index 0000000..eee36f5
@@ -0,0 +1,18 @@
+{
+    "name": "",
+    "icons": [
+        {
+            "src": "/assets/favicons/android-chrome-192x192.png",
+            "sizes": "192x192",
+            "type": "image/png"
+        },
+        {
+            "src": "/assets/favicons/android-chrome-512x512.png",
+            "sizes": "512x512",
+            "type": "image/png"
+        }
+    ],
+    "theme_color": "#ffffff",
+    "background_color": "#ffffff",
+    "display": "standalone"
+}
\ No newline at end of file
assets/favicons/mstile-150x150.png new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..6c3a8eba23c78f4b7b12debf451d092200949215
GIT binary patch
assets/favicons/safari-pinned-tab.svg new file +124 -0

124 lines not on this page · raw message

favicon.ico new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f74401ae158696ccef578480ae40358b855642d2
GIT binary patch
Signature · 1 line
2.13.3
#11 lore raw
In reply to Thomas Huth
Quoted 13 lines · Thomas Huth
Quoted 11 lines · Daniel P. Berrange
Quoted 6 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

FYI, just having a single 'favicon.ico' file isn't generally sufficient anymore. Thanks to explosion of mobile devices there are 20+ different files that various browsers / clients look for now :-(

Quoted 6 lines

Well, yeah, but most of that is just sick. Adding things like '<link rel="apple-touch-icon" .../>' to your web site is IMHO just how it should *not* be done.
If we're afraid that the 16x16 pixel icon is not enough, I think we should add an additional SVG icon, smile at the browsers that support it and wait for the others to catch up.

I'd prefer we did something that actually works for web users today, rather than expecting every vendor will switch to using SVG, which I doubt is ever going to happen.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#5 lore raw
In reply to Paolo Bonzini
Quoted 53 lines · Paolo Bonzini
Quoted 13 lines · Thomas Huth
Quoted 11 lines · Daniel P. Berrange
Quoted 6 lines · Thomas Huth

Most browsers try to download a /favicon.ico file from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too. The .ico has been created resizing the logo from http://wiki.qemu.org/Logo to 16x16 pixels.

FYI, just having a single 'favicon.ico' file isn't generally sufficient anymore. Thanks to explosion of mobile devices there are 20+ different files that various browsers / clients look for now :-(

Quoted 6 lines

Well, yeah, but most of that is just sick. Adding things like '<link rel="apple-touch-icon" .../>' to your web site is IMHO just how it should *not* be done.
If we're afraid that the 16x16 pixel icon is not enough, I think we should add an additional SVG icon, smile at the browsers that support it and wait for the others to catch up.

It has the advantage of working:

----------------- 8< -----------
From ba78908efd551c514a5156a3882316df76bee2e4 Mon Sep 17 00:00:00 2001
From: Thomas Huth <[email protected]>
Date: Wed, 26 Jul 2017 15:27:30 +0200
Subject: [qemu-web PATCH 1/1] Add a favicon file

Most browsers try to download a /favicon.ico file or similar from the web servers which is then e.g. used in the browser tabs or bookmark lists. So let's add such a file for the QEMU website, too.

The files and HTML were created with realfavicongenerator.net.

Message-Id: <[email protected]>

---
 _includes/assets.html                      |   9 +++
 assets/favicons/android-chrome-192x192.png | Bin 0 -> 23519 bytes
 assets/favicons/android-chrome-512x512.png | Bin 0 -> 69749 bytes
 assets/favicons/apple-touch-icon.png       | Bin 0 -> 15455 bytes
 assets/favicons/browserconfig.xml          |   9 +++
 assets/favicons/favicon-16x16.png          | Bin 0 -> 1356 bytes
 assets/favicons/favicon-32x32.png          | Bin 0 -> 2363 bytes
 assets/favicons/manifest.json              |  18 +++++
 assets/favicons/mstile-150x150.png         | Bin 0 -> 13296 bytes
 assets/favicons/safari-pinned-tab.svg      | 124 +++++++++++++++++++++++++++++
 favicon.ico                                | Bin 0 -> 15086 bytes
 11 files changed, 160 insertions(+)
 create mode 100644 assets/favicons/android-chrome-192x192.png
 create mode 100644 assets/favicons/android-chrome-512x512.png
Quoted 8 lines
 create mode 100644 assets/favicons/apple-touch-icon.png
 create mode 100644 assets/favicons/browserconfig.xml
 create mode 100644 assets/favicons/favicon-16x16.png
 create mode 100644 assets/favicons/favicon-32x32.png
 create mode 100644 assets/favicons/manifest.json
 create mode 100644 assets/favicons/mstile-150x150.png
 create mode 100644 assets/favicons/safari-pinned-tab.svg
 create mode 100644 favicon.ico

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Thomas

#6 lore raw
Quoted 2 lines · Thomas Huth

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Changed it to suggested-by then, and pushed. :>

Please test!

Paolo

#7 lore raw
Quoted 8 lines · Paolo Bonzini
Quoted 2 lines · Thomas Huth

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Changed it to suggested-by then, and pushed. :>

Please test!

I just tested in:

chrome
firefox
konqueror
internet explorer
edge
opera

Looks as expected in those, at least.

#8 lore raw
In reply to Paolo Bonzini
Quoted 7 lines · Paolo Bonzini
Quoted 2 lines · Thomas Huth

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Changed it to suggested-by then, and pushed. :>

Please test!

Does anybody know how a favicon.ico is supposed to work with the MediaWiki? Looking at the HTML of the Main_Page, it also references such a file:

<link rel="shortcut icon" href="/favicon.ico" />

But when you try to access that file, you're redirected to the non-existing wiki page http://wiki.qemu.org/Favicon.ico ...

Thomas

#9 lore raw
Quoted 9 lines · Thomas Huth
Quoted 7 lines · Paolo Bonzini
Quoted 2 lines · Thomas Huth

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Changed it to suggested-by then, and pushed. :>

Please test!

Quoted 8 lines

Does anybody know how a favicon.ico is supposed to work with the MediaWiki? Looking at the HTML of the Main_Page, it also references such a file:

<link rel="shortcut icon" href="/favicon.ico" />

But when you try to access that file, you're redirected to the non-existing wiki page http://wiki.qemu.org/Favicon.ico ...

On the libvirt mediawiki just creating a 'favicon.ico' file at the top level of the webroot works. ie same directory as contains your mediawiki LocalSettings.php

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#10 lore raw
In reply to Thomas Huth
Quoted 9 lines · Thomas Huth
Quoted 7 lines · Paolo Bonzini
Quoted 2 lines · Thomas Huth

If you're willing to maintain that "mess", sure, please go ahead! But please remove my SoB, I don't want to be responsible for all those files ;-)

Changed it to suggested-by then, and pushed. :>

Please test!

Quoted 8 lines

Does anybody know how a favicon.ico is supposed to work with the MediaWiki? Looking at the HTML of the Main_Page, it also references such a file:

<link rel="shortcut icon" href="/favicon.ico" />

But when you try to access that file, you're redirected to the non-existing wiki page http://wiki.qemu.org/Favicon.ico ...

That probably has to be fixed in httpd.conf.

Paolo