TW5 favicon: other formats: .png .svg

71 views
Skip to first unread message

Mohammad

unread,
Dec 14, 2018, 1:30:35 AM12/14/18
to TiddlyWiki
As we know, TW5 can show a favicon using an ico file named $:/favicon.ico
Most high quality ico are large in size and there are not free ones on the net.

My question is, can we use .png file instead of .ico file? e.g $:/favicon.png?

It seems almost all browser nowadays support .png and some support .svg



-- Mohammad

Jed Carty

unread,
Dec 14, 2018, 5:11:39 AM12/14/18
to TiddlyWiki
The tiddler title needs to be $:/favicon.ico, but the content doesn't need to be in .ico format.

If you put an image file into a tiddler and then rename the tiddler to $:/favicon.ico so far it has worked for me with jpg, png and gif images. I haven't gotten svg to work yet but I think that is a browser issue, not a tiddlywiki issue.

The only other limit I have run into is that it can't be a _canonical_uri tiddler

Mohammad

unread,
Dec 14, 2018, 11:10:54 AM12/14/18
to TiddlyWiki
Hello Jed,
 Many thanks. It works for me too.

Cheers
Mohammad

Mohammad

unread,
Dec 14, 2018, 11:16:55 AM12/14/18
to TiddlyWiki
Jed,
 SVG also works! This is amazing.


Best
Mohammad
Reply all
Reply to author
Forward
0 new messages