Skip to content

图片文件名过长/路径过长时,导出的 HTML 无法显示图片 #12521

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

Closed
TCOTC opened this issue Sep 19, 2024 · 1 comment
Closed

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Sep 19, 2024

https://ld246.com/article/1725848538170 :在自己的设备上正常显示图片,在别人的设备上文件路径变长了于是显示不了图片

导出为 HTML(SiYuan) 后,在我自己的设备上也显示不了图片:

EXCEL操作.sy.zip
EXCEL操作de54112284f17e05287c2c8fa4d90c7d37a700d1e5de28b3cc5bdc5f7ab15ca6ad1ec177c308ebd5304cab29adb.zip

image

@TCOTC TCOTC changed the title 图片文件名过长时,导出 HTML 无法显示图片 图片文件名过长/路径过长时,导出的 HTML 无法显示图片 Sep 19, 2024
@88250
Copy link
Member

88250 commented Sep 19, 2024

尝试了下,这个还是不动了,因为如果缩短文件名的话可能会丢失信息(插入文件的时候已经缩短过文件名了)。

另外,这个问题最主要的是和存放解压缩文件的路径有关系,可以手动将解压路径放在某个分区根目录上,并将文件夹名称改短应该就能打开了,比如 D:\1\index.html

@88250 88250 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants