Hi Mark,

I assume we need the accompanying 
> *NodeJSExternalFiles plugin* if we want to externalize
> the image automatically? 
>

Correct.
 

> When I tried it with the plugin installed, it created the image file in 
> the files directory but did not create any image tiddler (especially not 
> the _canonical_uri that I might have been expecting). 
>

I haven't looked at this for a while and the wiki where I use it is still 
on a June 2020 version of the 5.1.23 pre-release. At least there, it still 
works. The _canonical_uri tiddler is created and thus the text inserted 
into the editor still works. I would not be surprised if there are issues 
with newer TW versions since both the file system code and the import UI 
have received changes since then. (Note that the  canonical_uri tiddler 
created doesn't have created/modified fields and therefore does not show up 
in the Recent tab)

I will revisit when I get the chance, there are other improvements and 
issues that are still pending as well. This is pretty high up on the list 
of things that need attention for one of my personal projects, just need to 
find the time for it.
 

> The link it created still expected an image TIddler and needed to be 
> hand-adjusted to include the files/ path. I guess if it were to be tweaked 
> it should be tweaked so that the file path in the inserted link includes 
> *files/* in the path name. That would make it close to a complete 
> solution. 
>

I have considered having the option to import images without creating an 
associated canonical_uri tiddler. However, this would make it far more 
complicated to avoid overwriting previously imported images. 

Other things that still need attention are:
- error handling if there is an error saving the external file
- potentially allowing to save to a specified subdirectory in the files 
folder
- a progress bar for the upload would be useful for those not using this 
locally but over a slower remote connection.
 

> When compared to something like Evernote, there's still the additional 
> step you need of first downloading images to your hard drive before 
> importing them back into your TW file.
>

Copying and pasting from a webpage does work IIRC but drag and drop does 
not. The usual issues with cross domain restrictions make it difficult to 
parse the URL and retrieve the image.

A good general purpose solution for TW would be if pasting or dragging and 
dropping an image into the text editor, offered to import the image in the 
background and insert a transclusion at the position of the text caret, 
much as GitHub does. I would like to work on this at some point but being 
realistic it is going to be a struggle to find any time for it in the near 
future. 

Cheers,
Saq
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b64f99b1-d021-43aa-9ef7-d14e391de075n%40googlegroups.com.

Reply via email to