Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: [img[file:../image/xx.png]]引起五彩进度条一直加载,相对路径引用外部图片无法显示 #513

Closed
king0billy opened this issue Jan 20, 2024 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@king0billy
Copy link

king0billy commented Jan 20, 2024

Environment 环境信息

win11 tidgi最新版本0.91

Description 描述

五彩进度条一直在加载,右键无反应,长时间之后会黑屏
2024-01-20_12-13-22_10-00_2520_1680_4105903_1

image

Steps to Reproduce 复现方式

打开多几条tiddle, 重启后复现

Additional Context 额外上下文

No response

@king0billy
Copy link
Author

复现:打开如下tiddle出现问题

[img[封面按钮在右下角image.png]]
封面按钮在右下角

[img[file:../image/封面按钮在右下角image.png]]

[img[../image/封面按钮在右下角image.png]]

[ext[img|../image/封面按钮在右下角image.png]]

[[test img|../image/封面按钮在右下角image.png]]

<<image-basic img:"../image/封面按钮在右下角image.png" width:"90%" align:"center" caption:"" tooltip:"" alt:"">>

[img [https://images.rasalhague.net/hexxen/karte_markovia.jpg]]

@linonetwo
Copy link
Contributor

是不是打开了所见即所得编辑器,所见即所得目前不支持有图片的条目。

可以用 vscode 打开这个条目在硬盘上的 tid 文件,然后删掉它的 sysiwyg 字段即可修复

@linonetwo
Copy link
Contributor

还有 image-basic 是哪个插件提供的?

@king0billy
Copy link
Author

king0billy commented Jan 22, 2024

image

复现:打开如下tiddle出现问题

[img[封面按钮在右下角image.png]]
封面按钮在右下角

[img[file:../image/封面按钮在右下角image.png]]

[img[../image/封面按钮在右下角image.png]]

[ext[img|../image/封面按钮在右下角image.png]]

[[test img|../image/封面按钮在右下角image.png]]

<<image-basic img:"../image/封面按钮在右下角image.png" width:"90%" align:"center" caption:"" tooltip:"" alt:"">>

[img [https://images.rasalhague.net/hexxen/karte_markovia.jpg]]
  1. slate write插件我早就已经禁用了,很多bug,包括但不限于导出所有html发红。
  2. 两个已下架?的插件sp_spotlight或者oeyoews_tiddlywiki-fancybox-ui提供,我没搞懂。
  3. 这段代码的显示效果如图,很奇怪。 我也无法使wiki文件夹以外的图片正常显示。

@king0billy
Copy link
Author

king0billy commented Jan 22, 2024

还有 image-basic 是哪个插件提供的?

现在我已删了image-basic这段代码,还是有五彩进度条加载。
关于image-basic我暂时找不到来源了,是在tw官方论坛里面搜图片加载相关时复制的。

[img[file:../image/封面按钮在右下角image.png]]是这段代码引起了加载,去掉之后不会有进度条但是图片一样不能正常显示。

照片绝对路径如下 [img[C:\Users\22427\OneDrive\Documents\TiddlyWiki\image\封面按钮在右下角image.png]] 使用绝对路径也引起加载。
wiki文件夹路径如下C:\Users\22427\OneDrive\Documents\TiddlyWiki\HydroWood

您能告诉我为什么图片不能正常显示吗,我已经确保路径都是对的了。

@linonetwo
Copy link
Contributor

linonetwo commented Jan 23, 2024

这个是文件引用功能的文档,你看看了解完还有没有问题 https://tidgi.fun/#%E5%A4%AA%E8%AE%B0%E5%8A%9F%E8%83%BD%E6%89%8B%E5%86%8C%2F%E5%BC%95%E7%94%A8%E5%A4%96%E9%83%A8%E6%96%87%E4%BB%B6

还有截图里没看到五彩的进度条呀,图片直接都挂了

@king0billy
Copy link
Author

king0billy commented Jan 23, 2024

这个是文件引用功能的文档,你看看了解完还有没有问题 https://tidgi.fun/#%E5%A4%AA%E8%AE%B0%E5%8A%9F%E8%83%BD%E6%89%8B%E5%86%8C%2F%E5%BC%95%E7%94%A8%E5%A4%96%E9%83%A8%E6%96%87%E4%BB%B6

还有截图里没看到五彩的进度条呀,图片直接都挂了

image
不明白为什么,仅一个有效
[ext[外部文件|C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

剩下的无效:

[img[C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]
[img[file://C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

[img[file:///Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]  
[ext[外部文件|file:///Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

另外,相对路径可以顺利打开wiki文件夹外的html文件如
[ext[成功了😲file: Supermemo |file:../html/index.htm]]
但是换成图片之后点击没反应
[ext[img test相对路径|../image/test.png]]

@linonetwo
Copy link
Contributor

你的是Windows吧,哪来的 /Users

还有你得把 file:// 打全了,看你都漏了

@king0billy
Copy link
Author

[ext[外部文件|C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

[ext[外部文件|C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]] 这个不用file://也行。

但是该用什么语法引用wiki文件夹之外的图片,并且能在tid文件里预览呢

@linonetwo
Copy link
Contributor

用 img 而不是 ext 吧

@linonetwo
Copy link
Contributor

[img[file://C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

这个呢

@king0billy
Copy link
Author

king0billy commented Jan 30, 2024

[img[file://C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]
这个呢

没有任何效果,甚至连
image
这个都不显示

@king0billy
Copy link
Author

[img[file://C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]][img[文件://C:/Users/22427/OneDrive/Documents/TiddlyWiki/image/test.png]]

这个呢

这是个bug,希望您能重视!

@linonetwo
Copy link
Contributor

提供一个Github上的复现仓库吧,不然我这边没发现问题

@king0billy
Copy link
Author

相关 #562 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants