twImage-class: A class to handle TiddlyWiki images.

Description Details Usage Slots Methods Author(s) See Also Examples

Description

Some utilities to insert images into TiddlyWiki.

Details

Resizing is done using http://www.tiddlytools.com/#ImageSizePlugin where (w,h) indicates the desired width and height (in CSS units, e.g., px, em, cm, in, or %). [img(w+,h+)[...][...]]

Usage

new ("twImage", imgf, ...)

twImage (imgf, ...)

Slots

imgf:

the image file.

label:

label of the image.

ref:

optional; a target tiddler or URL to be redirected to.

align:

alignment of the image. May be NA, "r" or "l".

width:

width scaling factor.

height:

height scaling factor.

Methods

imgf:

access the imgf slot.

label:

access the label slot.

ref:

access the ref slot.

align:

access the align slot.

width:

access the width slot.

height:

access the height slot.

Author(s)

David Montaner dmontaner@cipf.es

See Also

twTable and twLink

Examples

1
2
3
new ("twImage", imgf = "myImageFile.png")
twImage ("myImageFile.png")
wikify (twImage ("myImageFile.png"))

Example output

myImageFile.png
NA ===> NA
myImageFile.png
NA ===> NA
[1] "[img[myImageFile.png]]"

TiddlyWikiR documentation built on May 2, 2019, 9:18 a.m.