There is some complications with a tiddlywiki on an http:// site and 
displaying file:// type URLs but so long as the tiddlywiki is on your 
filesystem, it can display both http:// and file:// URIs.

I put together a convenience tool <https://sextant.space/#DropCanonicalURI> 
for making canonical_uri tiddlers and tagging them for future sorting. So 
just open up the local directory of images in a browser window 
(file:///<home directory of pictures>) and then you can drag and drop the 
links one at a time into the zone that DropCanonicalURI sets up. It will 
assign the mime-type that you set and tag the resulting tiddler with the 
name of the tidder that contains the macro. Browsers are not picky about 
the specific image type so long as you select one with the "image/" prefix 
... so with a mix of jpgs and pngs, you should be able to just pick one and 
go with it. If I had the time, I could likely make it more clever and pick 
a good guess at a mime-type based on file extension ... but for now it is 
manual.

The ListHere <https://sextant.space/#ListHere> macro and DropHere 
<https://sextant.space/#DropHere> functionality might be useful to use in 
conjunction with this for further sorting/tagging/displaying. The DropHere 
isn't a macro unto itself since you would want to wrap it around some 
element that you want to make into a dropzone. But the example inside 
should get to going.

Hope you can put these to some use.

/Mike

On Wednesday, May 12, 2021 at 2:33:51 PM UTC-3 History Buff wrote:

> Hello all,
>
> I am building a TW to organize all of our family photos. So far, I've been 
> doing everything by hand which is a tad tedious. I'm wondering if there 
> might be a way to use the import mechanism a little differently than what I 
> think is currently available (at least as far as I have found).
>
> What I would like to do is to click an import button which would pull up a 
> file picker. I would then pick my image that I wanted to use, but instead 
> of importing the image as an external image tiddler, I would like to 
> basically only import a path to the image such that I can use that path in 
> creating my own external links and formatting them any way that I choose. I 
> don't know enough about the import mechanism yet to understand if this is 
> even possible or how to go about it.
>
> Any thoughts or ideas?
>
> Many thanks in advance.
>

-- 
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/bc255ae4-d151-44e0-9c70-dcda2aa1f9b8n%40googlegroups.com.

Reply via email to