Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Mohammad
@Jeremy Many thanks for your clarification. @Sylvain I understood both favicon and datauri need real svg image file. I am not sure if this is an efficient way or not but you can write your svg block like core image into another tiddler with correct type and xmlns part! But may be it does not

Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Sylvain Naudin
I still haven't found out if it's possible to do that, but the subtlety is that you would have to copy the final rendering and not the content of the text field because otherwise it goes back to the starting point ^^'. Le mardi 15 décembre 2020 à 13:09:37 UTC+1, Sylvain Naudin a écrit : >

Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Sylvain Naudin
OK, It's frustrating because with TW's ability to modify itself, one could imagine just changing the colour of a fill element in the text field of the SVG tiddler ;) I guess I can find a workaround by doing a macro to completely change the text field of my tiddler. (Can $action-setfield be

Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Jeremy Ruston
Hi Sylvain > Would it still be possible to make this evolve in the future (and consider > the favicon as a core image therefore and not an SVG XML image)? This isn’t a TiddlyWiki thing, this is how SVG is handled by browsers. The browser requires a full SVG image for the favicon. Remember that

Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Sylvain Naudin
Hi, This is exactly the thread I wanted to search for yesterday when Google broke down ^^' I wanted to add a setting to my SVG logo used as $:/favicon.ico Unless I made a mistake, I have to fix it with the SVG document type, so I can't insert the macro <> to reference the colour of my

Re: [tw5] [Macro] datauri macro and svg images

2020-12-15 Thread Jeremy Ruston
Hi Mohammad, Joshua This is the old chestnut of the confusing fact that there are two distinct types of SVG images, and they behave differently, and are defined differently. The core images are actually SVG elements designed to be transcluded directly into HTML documents; that’s what enables

[tw5] [Macro] datauri macro and svg images

2020-12-09 Thread Mohammad
I tried to use an svg as background. I realized I cannot use core svg images. One reason may be the tiddler type or perhaps the removed xlmns. See below example at .jack { background: url(<$macrocall $name="datauri" title="Motovun Jack.jpg" $output="text/plain"/>); height: 300px; } Now