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

Internet images cannot be exported #11231

Open
3 tasks done
allrobot opened this issue May 2, 2024 · 4 comments
Open
3 tasks done

Internet images cannot be exported #11231

allrobot opened this issue May 2, 2024 · 4 comments
Assignees
Labels

Comments

@allrobot
Copy link

allrobot commented May 2, 2024

当断网/网络拥堵时,md图片格式无法导出图片,报错查询资源失败

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如题所示,图片点右键弹出的菜单的导出选项就报错,它似乎不是从diskCache本地缓存中导出的图片,而是远程请求下载图片?

报错:
image

Expected result

网络拥堵,或断网,无法导出[image](https://xxx.png)已缓存的图片,图床是github:https://raw.githubusercontent.com/user/project/main/img/xxx.png

Screenshot or screen recording presentation

SiYuan_1dSRvBQB4v

Version environment

- Version: latest
- Operating System: win10 enterprise 21H2
- Browser (if used):No

Log file

siyuan.log

More information

No response

@TCOTC

This comment was marked as outdated.

@88250 88250 changed the title 当断网/网络拥堵时,md图片格式无法导出图片,报错查询资源失败 Internet images cannot be exported May 3, 2024
@88250 88250 added the Bug label May 3, 2024
@88250
Copy link
Member

88250 commented May 3, 2024

@TCOTC 不是一个问题,这个 issue 的问题是 copyFile 实现只能针对本地 asset,无法处理网络链接。估计得改进为网络链接资源单独实现导出。

@allrobot
Copy link
Author

allrobot commented May 3, 2024

@TCOTC 不是一个问题,这个 issue 的问题是 copyFile 实现只能针对本地 asset,无法处理网络链接。估计得改进为网络链接资源单独实现导出。

#11222 和本Issue是同一个需求的,都是针对对网络图片本地缓存的需求,diskCache等重启电脑就没了,打开笔记就无法加载md格式的图片,所以diskCache无法满足我们的需求

我们需要网络图片的本地缓存文件夹,不是assets文件夹……

@88250
Copy link
Member

88250 commented May 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants