Lots of images and audio

202 views
Skip to first unread message

Mark Krieg

unread,
Sep 23, 2019, 1:53:20 PM9/23/19
to TiddlyWiki
Greeting everyone!

I've got a personal journal in TiddlyWiki of less than 5000 entries/tiddlers. However when I started loading lots photos it began crashing under node.js.

I have two needs, the best way to handle large numbers of images and audio, and also a method to server it via HTTP so I can access it from anywhere.

I thought that node.js was my solution, only loading the tiddlers as I used them, however that doesn't seem to be the case.

Any suggestions would be MOST welcome!

Every blessing,

Mark

Mark S.

unread,
Sep 23, 2019, 2:09:06 PM9/23/19
to TiddlyWiki
What version of TW?
How are you loading the images?
How are you launching TW in node.js ?

Good luck!

Mark Krieg

unread,
Sep 23, 2019, 2:37:48 PM9/23/19
to TiddlyWiki
My TiddlyWiki version is: 5.1.22



I'm loading the images by dragging them onto my TiddlyWiki, importing them, and referencing the tiddler like so:

{{57e44c4c47311360f4f8f4e485bb47b1.jpeg}}



The way I launch TW in node.js is:

alias twsrv='cd ~/Dropbox/TiddlyWiki5 && tiddlywiki editions/tw5.com-server --server 8080 $:/core/save/all text/plain text/html "" "" 0.0.0.0'

Jed Carty

unread,
Sep 23, 2019, 2:40:30 PM9/23/19
to TiddlyWiki
If you are using _canonical_uri instead of importing the images into tiddlers helps, even on node.js.

I have had a few thousand images in a wiki that used _canonical_uri and there was no trouble.

Otherwise skinny tiddlers can help, but I haven't ever used them so someone else would have to give input there.

Mark S.

unread,
Sep 23, 2019, 3:05:46 PM9/23/19
to TiddlyWiki
Have you tried these settings:


In theory, your images will only load when you need them.

Good luck!

TonyM

unread,
Sep 23, 2019, 7:53:40 PM9/23/19
to TiddlyWiki
Mark,

When it comes to serving it via http the main questions you need to ask is do you need to simply publish it as read only on the internet or do you have contributors, is its visibility or edit available online?, or do you want it hidden for you or a small number of people?. The simplest method is to edit it locally and copy up as needed or use tiddlyspot etc... Other questions are do you need search engines to recognise it etc...

What hosting service do you have available etc...

Personally I am moving to using tw-receiver, single file wikis on a standard web hosting platform for wikis I can edit and everyone else can read. I am gradually developing methods to help turn this method into  fully collaborative system but this will take time.

Jed I think has the most advanced experience with publishing node on the internet but I believe security concerns remain.

So unfortunately you will need to describe more deeply your hosting requirements to get more focused advice on hosting.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages