which is best? [img[path/to/file]] or "_canonical_uri" method

91 views
Skip to first unread message

Sapphireslinger

unread,
Mar 18, 2021, 6:24:59 AM3/18/21
to TiddlyWiki
For a tiddlywiki blog where media will be stored in separate folder, which is better, speedier, etc?

1. [img[path/to/file]]

OR

2. Manually creating a _canonical_uri field with path/to/file, and switching the tiddler type to jpeg.

If they are both the same, the first feels easier (fewer steps) and more versatile to me (I can put text in the tiddler with the image.

Another Question:

Do most tiddlywiki bloggers keep their images in another folder or do they embed them in the wiki, and does this cause bloat and slow loading for blog vistors? 

PMario

unread,
Mar 18, 2021, 6:49:24 AM3/18/21
to TiddlyWiki
On Thursday, March 18, 2021 at 11:24:59 AM UTC+1 Sapphireslinger wrote:
For a tiddlywiki blog where media will be stored in separate folder, which is better, speedier, etc?

1. [img[path/to/file]]

If you don't want to tag the image or add any other "meta info" in fields. That's the way to go.
 
2. Manually creating a _canonical_uri field with path/to/file, and switching the tiddler type to jpeg.

The opposite of 1. If you need meta-info go with a tiddler and the _cannonical_uri field.
 
Another Question:
Do most tiddlywiki bloggers keep their images in another folder or do they embed them in the wiki, and does this cause bloat and slow loading for blog vistors? 

Go with separated images. If you embed them, you are risking bloat. Slow loading time and slower interaction on the client. ... But it depends a little bit. If you want the wiki to be a "single file wiki" you have to embed them. ... You can do so if you use small images. May be several 100 kByte per image.

If you use several MByte per image you'll have problems.

I'm using https://squoosh.app/ to check my images against size and quality.

-mario


PMario

unread,
Mar 18, 2021, 6:51:07 AM3/18/21
to TiddlyWiki
On Thursday, March 18, 2021 at 11:49:24 AM UTC+1 PMario wrote:

I'm using https://squoosh.app/ to check my images against size and quality.

squoosh can also help with "external" images to make them load faster. ... But imo it's essential for embedded images.

-mario

Sapphireslinger

unread,
Mar 18, 2021, 8:49:15 AM3/18/21
to TiddlyWiki
Mario,

Thank you very much for the clarification and guidelines.

Reply all
Reply to author
Forward
0 new messages