Hi Danielo

There's some background here:

http://tiddlywiki.com/#UsingSVG

It's important to understand the distinction between an SVG *document*
displayed in an IMG tag and an SVG fragment inserted into the DOM.

The former allows you to display any off-the-shelf SVG image; just pop it
in a tiddler with the right MIME type, and then do {{imageName}} or
[img[imageName]]. With this approach you don't get to control the CSS
applied to the SVG image; it's sandboxed, like an iframe.

The other approach of embedding a fragment of SVG is done by transcluding a
wikitext tiddler that contains an SVG element. The content of the image is
subject to the prevailing CSS rules.

To create SVG fragment images is done by taking an ordinary SVG image and
trimming off the first couple of lines.

The other approach is to use an icon font; it's much easier to change the
colours of them. You can embed an icon font in the same way as the
Starlight theme.

Best wishes

Jeremy.







On Wed, Jun 4, 2014 at 5:51 PM, Danielo Rodríguez <[email protected]>
wrote:

> Hello Jeremy,
>
> There are many svg examples, that's right but they are not very real world
> examples. Any svg you can find anywhere have thousand of extra fields and
> parameters. How can we adapt those images?
>
> That's what I'm talking about.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to