When I insert the code, it seems to try to display the image as a data set.
Do I need to change the properties of the tiddler somewhere so that it renders the image?
Thank you very much.
Guten Morgen,
ich habe folgendes eingesetzt:
background-image: url (<<datauri "uhr-bg.png">>);
Als Ergebnis erhalte ich folgendes (das Ende ist abgekürzt)
Beim Einsetzen des codes scheint er zu versuchen, das Bild als Datensatz anzuzeigen.
Muss ich irgendwo die Eigenschaften des Tiddlers ändern, damit er das Bild rendert?
Unfortunately, the result is that the background graphic is not displayed—nor is it displayed as garbled text, as it was in the meantime.
In order to avoid continuing to bother you with this problem, I have created a “quick fix” solution for now. Perhaps something else can be found later when there is more time.
I’ve sometimes had poor luck with specifying image/svg+xml as tiddler type. Instead, if the svg-containing tiddler just uses the proper enclosing svg tags, it gets parsed fine in default (unspecified) tiddler type, and it’s easy to embed it in other tiddlers with a simple transclusion as in {{german-clock.svg}} (no need for <object> html).
(And it does work fine when the image has the image/svg+xml tiddler type as well; you can swap the extension on Motovun Jack.jpg for the svg version (also imported to be available internally), and the div still renders with the svg in background.)
Did you see the note by @saqimtiaz and my subsequent amendment? There doesn’t seem to be any confusion over what parameters are accepted within which macro calls…
(Or maybe you’re flagging that the output is "text/plain" even though it’s ultimately an image we’re working with? But I think this just means that the datauri macro itself is putting out something that plays fine with surrounding wiki text, no? The style declaration is “reading” and digesting the data for the image rather than taking the image itself as input, right?)