(tw5) on node.js : inconsistent behaviour when importing image files using drag'n'drop

40 views
Skip to first unread message

ch

unread,
Sep 13, 2015, 10:14:56 AM9/13/15
to TiddlyWiki
hi,

i noticed that when you drag'n'drop a jpeg image (for example image.jpg), that file is copied to the tiddlers folder and a new file is created using the same file name as the file imported with ".meta" as postfix, i.e. image.jpg.meta - this file contains something like:

created: 20150908152411390
title: image.jpg
type: image/jpeg

...but, if you drag'n'drop a gif (or png) image (for example image.gif), that file is *not* copied to the tiddlers folder and a new file is created using the same file name as the file imported with ".tid" as postfix, i.e. image.jpg.tid - this file contains something like:

created: 20150908152411390
title: image.gif
type: image/gif

iVBORw0KGgoAAAANSUhEUgAAAJYAAADiCAMAAACbbM4HAAABelBMVEWJng+pq6l6wQ11lA...

i.e. the image is instead embedded using base64 encoding.

- wouldn't it be nice if "copy image file" or "embed image file" could be selected during the import by drag'n'drop, when the "import tiddler" appear?

i'm running tw on node.js, so i always prefer to "copy image file" instead of "embed image file"

cheers!
christian

Tobias Beer

unread,
Sep 15, 2015, 6:43:32 AM9/15/15
to TiddlyWiki
Hi ch,

Best open a ticket on GitHub and follow up there:

Reply all
Reply to author
Forward
0 new messages