0

Usually to set an icon in the browser tab you use

<link rel="icon" href="logo.png">

I want to embed the logo in the html file using a data URL, so something like

<link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzcAAALUC...">

but it doesn't work. How can I get the base24 icon to appear in the tab.

Mark Kortink
  • 1,770
  • 4
  • 21
  • 36
  • About 12 years ago I played a game whose display area was the favicon. I'd forgotten all about that little adventure till now. http://www.p01.org/defender_of_the_favicon/ – enhzflep Nov 29 '20 at 11:57
  • @caramba it should answer my problem, and it turns out i am actually using one of the solutions suggested, it just doesn't work in my case (in edge, chrome or firefox). I tested the base24 and it does render as an image when I use `````` but does not work as an icon in ``````. – Mark Kortink Nov 29 '20 at 20:27
  • Closing this question, it turns out to be a Jinja2 problem. I am including the base24 string using Jinja2, and it fails, when I copy/paste the base24 string directly into the html it works. – Mark Kortink Nov 29 '20 at 20:42

0 Answers0