Embedding images on Android

瀏覽次數:66 次
跳到第一則未讀訊息

Alvin Yang

未讀,
2021年11月30日 下午4:29:532021/11/30
收件者:TiddlyWiki
Hey guys, 

I'm new here. I've been having this issue where local images won't load on android (Chrome) where they would on my laptop. I'm using the single html file TiddlyWiki. I've tried having the image in the same directory as well as in a sub directory. I first tried the [img[(file path]] syntax as well as the _canonical_uri. Again they work fine on my pc but on android it just shows this image icon.

Does anyone know what's going on? 

Thank you,
Alvin


Joshua Fontany

未讀,
2021年11月30日 下午6:20:052021/11/30
收件者:TiddlyWiki
Chrome on Android cannot access local file paths: https://blog.chromium.org/2008/12/security-in-depth-local-web-pages.html

This is an instance where having the images AS base64-encoded-image-tiddlers will work out "easiest". Otherwise, you'll have to host those images online or on a local network host, and make sure the _canonical_uris are pointing to the correct paths.

Best,
Joshua Fontany

Xavier Cazin

未讀,
2021年12月1日 上午8:25:102021/12/1
收件者:tiddl...@googlegroups.com
Speaking of "local network host", there is an easy way to create one on Android, using the RCX app. See instructions at the end of https://talk.tiddlywiki.org/t/use-webdav-for-saving-a-single-file-wiki/441. This would allow you to make the directory where your wiki resides available to Chrome through webdav.

Cheers,
-- Xavier

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5c903670-f1a0-4009-9880-00683d790410n%40googlegroups.com.
回覆所有人
回覆作者
轉寄
0 則新訊息