Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:25 10 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMiteWEB - favicon.ico

Author Message
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 374
Posted: 02:56pm 08 Mar 2023
Copy link to clipboard 
Print this post

In Matherp's thermostate example the "favicon-icon" is embedded in the HTML-code. I like the approach; no need to keep the favicon.ico in the flash.

<link rel="icon" type="image/x-icon" sizes="16x16" href="data:image/png;base64,AAABAAEAEB..........


How do you make it? Which tools are needed? (I know how to make a custom favicon.ico)

/Pluto
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3998
Posted: 04:30pm 08 Mar 2023
Copy link to clipboard 
Print this post

Looks like a base64 (aka b64) tool (I have it on Linux, guess it's widely available for other OSes).

John
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 374
Posted: 05:07pm 08 Mar 2023
Copy link to clipboard 
Print this post

Thanks John!

Googling for base64:

base64 Image Encoder

Made a 16x16 picture in Paint. Saved as png and dropped the file in the base64 Image Encoder, which gave the code (blue text):

<link rel="icon" type="image/x-icon" sizes="16x16" href=
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA........
......fQE2zAhkZr+w8IO2jMBYNhMBMA1K3Ap7ISgCSqF3PqRxrvx4+TAAAAAElFTkSuQmCC

" />


Place <link rel="icon"......./> inside the <head>...</head>

/pluto
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3998
Posted: 06:29pm 08 Mar 2023
Copy link to clipboard 
Print this post

Excellent!

John
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 374
Posted: 07:33pm 08 Mar 2023
Copy link to clipboard 
Print this post

Thanks again John. Without your hint I would not have succeded (today at least).
/pluto
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025