Images using canonical field or not

Hi,

After using the canonical method to include external images, I realised I could have just type this [img width=200 [imagename.jpg]] (when the image is located in the same folder as my wiki)

The canonical method seems a lot more involved so what’s the advantage of using it?

This is from the docs:

When used to display tiddler-based images, the image widget operates in two distinct modes:

  • If the _canonical_uri field is present then it is used as the src attribute of the generated <img> element and the text field is ignored
  • Without the _canonical_uri field, the image widget generates an <img> element that embeds the image data directly using a data: URI.

Regards
Jon

2 Likes

The advantage for me is, that I have a tiddler that can have additional fields and tags.

To add to that, it also makes the image searchable within the wiki. Whether you have need for that or not is another matter.

1 Like

OK, thanks for the info - that’s useful to know.

Regards
Jon