Newer
Older
labs / tiddlers / system / cheatsheet / $__Cheatsheet_Cheatsheet_Images_Images.tid
tags: cheatsheet
title: $:/Cheatsheet/Cheatsheet/Images/Images
type: text/vnd.tiddlywiki

Transclude another tiddler that has SVG/PNG/JPG as its contents:

You use double curly brackets to transclude, with the title of the image in the brackets:

```
{{$:/Cheatsheet/Cheatsheet/svg_example}}
```
Produces:
{{$:/Cheatsheet/Cheatsheet/svg_example}}

Look at  $:/Cheatsheet/Cheatsheet/svg_example for an example of how to create an SVG tiddler.  You need to set the type to `image/svg+xml` (or whatever type that the image content is).

!! SVG

You can control the size using a `<div>` with a `width` style:

```
<div style="width:100px">{{$:/Cheatsheet/Cheatsheet/svg_example}}</div>
```
Produces:

<div style="width:100px">{{$:/Cheatsheet/Cheatsheet/svg_example}}</div>

Using `<div style="width:185mm">` will make the image fit nicely on a printed page.