See  my answer to Mohammad.

On Monday, March 9, 2020 at 5:16:32 AM UTC-4, Atronoush wrote:
>
> Donald,
>
>  Yes, I am using Node.js on Windows machine.
>   Tiddlywiki correctly scans the picture folder and create the image 
> tiddlers with correct name (The same file name as in pictures folder). Also 
> when I relocate pictures folder, on wiki startup I get the error 
> complaining Tiddlywiki can not find the picture folder.
>
> I see the broken image when I open an image tiddler. I did what you advised
>
> This is address of image: 
> http://127.0.0.1:8080/pictures/IMG_20160405_122242.jpg
>
> Like you I think something wrong with _canonical_uri! But I don not know 
> what is that?
>
>
>
>
> On Monday, March 9, 2020 at 11:40:23 AM UTC+3:30, Donald Coates wrote:
>>
>> my use case is a bit different from yours in that I am using nginx to 
>> serve the image from a webserver.
>>
>> when you click to open the tiddler I assume there is a 'broken picture' 
>> icon.  right click on that and look for something like open in a new tab or 
>> properties.  You want to see where the browser is looking for the file.  
>> This usually puts me in the right direction.  You probably need to adjust 
>> the prefix of the canonical uri based on where the browser is being 
>> pointed.  Let me know if that helps or gives a clue.
>>
>> On Monday, March 9, 2020 at 2:01:35 AM UTC-4, Atronoush wrote:
>>>
>>> Hi Donald,
>>>  I have the same problem. See my file structure where there few tens of 
>>> .jpg pictures are loctaed in a folder (picture) in the same folder with 
>>> mywiki (wiki)
>>>   
>>> -- pictures
>>> -- myWIki
>>> -- -- tiddlywiki.info
>>> -- -- tiddlers
>>> -- -- -- images
>>> -- -- -- -- tiddlywiki.files
>>>
>>>
>>> ant my tiddlywiki.files is as below
>>>
>>>     "directories": [
>>>         {
>>>             "path": "../../../pictures",
>>>             "filesRegExp": "^.*\\.jpg$",
>>>             "isTiddlerFile": false,
>>>             "fields": {
>>>                 "title": {"source": "basename-uri-decoded"},
>>>                 "created": {"source": "created"},
>>>                 "modified": {"source": "modified"},
>>>                 "type": "image/jpeg",
>>>                 "tags": ["$:/tags/AttachedFile"],
>>>                 "text": "",
>>>                 "_canonical_uri": {"source": "filename", "prefix": 
>>> "pictures/"}
>>>             }
>>>         }
>>>     ]
>>> }
>>>
>>>
>>>
>>> When I start the wiki, I see all image tiddlers have been created 
>>> successfully. but not image is shown.
>>>
>>> This is the structure of one image tiddler
>>> title:IMG_20160403_172207.jpg
>>> _canonical_uri: pictures/IMG_20160403_172207.jpg
>>>
>>> What do you think?
>>>
>>>
>>> I appreciate to share your experience if you have been successful in 
>>> loading several images from local disk in this way.
>>>
>>>
>>>
>>> On Monday, March 9, 2020 at 8:10:55 AM UTC+3:30, Donald Coates wrote:
>>> Jeremy!!!!!!   That was the solution!!!!
>>>
>>> Sorry for the exclamations but I have dumped a lot of time obsessively 
>>> trying to figure this out.  It has been constructive playtime I hope 
>>> because I'm starting to get a sense of just how powerful the server can be 
>>> beyond just serving the files, but I was beginning to despair.  I have been 
>>> playing with tiddlywiki.file in other contexts and have no idea why I did 
>>> not apply it here.
>>>
>>> You have truly saved my sanity.
>>>
>>> This was part of a more complex task I was trying to achieve which I 
>>> will write up later in case it might help others like Beckstrom.
>>>
>>> Again - thank you for your advice and this wonderful tool.
>>>
>>> Donald
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a8fc054f-6f20-4d9e-9f17-98891577928a%40googlegroups.com.

Reply via email to