Hi Sylvain Just set the type field to indicate that it is an SVG image:
<$button class="" tooltip="Color Favicon" aria-label='Color Favicon'>Add color to $:/favicon.ico <$action-setfield $tiddler="$:/favicon.ico" text=<<favi "black">> type="image/svg+xml"/> </$button> Best wishes Jeremy > On 16 Dec 2020, at 17:18, Sylvain Naudin <sil...@gmail.com> wrote: > > \define favi(color) > <svg xmlns="http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>" > width="144.798" height="87.014" viewBox="0 0 38.311 23.022"> > <path d="M19.41.004L2.814.88A2.97 2.97 0 00.008 3.634l-.001.023a2.646 2.646 > 0 002.45 2.828l3.958.284A1.438 1.438 0 017.75 8.187l.138 11.97a2.866 2.866 0 > 002.66 2.824l.01.001a2.45 2.45 0 002.625-2.456L13.12 8.56a3.124 3.124 0 > 012.585-3.093l1.328-.233a1.419 1.419 0 011.65 1.2l2.03 14.453a1.401 1.401 0 > 002.396.777l3.76-3.905a1.694 1.694 0 012.595.186l3.31 4.606a1.13 1.13 0 > 002.027-.447l3.48-18.22a1.67 1.67 0 00-1.12-1.899l-1.274-.417a2.066 2.066 0 > 00-2.704 1.815l-.473 6.598a.882.882 0 01-1.621.414l-1.146-1.78a1.39 1.39 0 > 00-2.217-.159l-1.908 2.198a.97.97 0 01-1.673-.396l-2.13-8.34A2.551 2.551 0 > 0019.409.005z" fill="$color$" /> > </svg> > \end > > <$button class="" tooltip="Color Favicon" aria-label='Color Favicon'>Add > color to $:/favicon.ico > <$action-setfield $tiddler="$:/favicon.ico" text=<<favi "black">> /> > </$button> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9FFA7579-5570-4100-B45E-C5200AC47D28%40gmail.com.