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

Convert network images to local supports // #10598

Closed
3 tasks done
Mr-Jies opened this issue Mar 13, 2024 · 13 comments
Closed
3 tasks done

Convert network images to local supports // #10598

Mr-Jies opened this issue Mar 13, 2024 · 13 comments
Assignees
Milestone

Comments

@Mr-Jies
Copy link

Mr-Jies commented Mar 13, 2024

图片转为本地图片无法进行。提示:该文档不存在网络图片

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

image image

操作:
image

操作失败:
image

Expected result

应该会识别到图片进行转换,但是转换不成功~

Screenshot or screen recording presentation

No response

Version environment

- Version: v3.0.3
- Operating System: Mac os M1

Log file

...

More information

No response

@mozhux
Copy link

mozhux commented Mar 13, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

@88250
Copy link
Member

88250 commented Mar 13, 2024

请提供内核日志文件以便诊断问题,谢谢。

@luo-chuan
Copy link

建议给出网页链接或图片链接

@88250
Copy link
Member

88250 commented Mar 14, 2024

我们先关闭了,欢迎随时补充所需细节以便进一步定位问题。

@88250 88250 closed this as completed Mar 14, 2024
@Mr-Jies
Copy link
Author

Mr-Jies commented Mar 14, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

不能外部显示,打开链接就把图片下载了

@mozhux
Copy link

mozhux commented Mar 14, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

不能外部显示,打开链接就把图片下载了

看你截图是阿里云的对象存储,这个检查你的桶是不是私有读写吧,只能你自己看的

@Mr-Jies
Copy link
Author

Mr-Jies commented Mar 14, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

不能外部显示,打开链接就把图片下载了

看你截图是阿里云的对象存储,这个检查你的桶是不是私有读写吧,只能你自己看的

不会是私有读写吧,这是其中的一个链接。

@mozhux
Copy link

mozhux commented Mar 14, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

不能外部显示,打开链接就把图片下载了

看你截图是阿里云的对象存储,这个检查你的桶是不是私有读写吧,只能你自己看的

不会是私有读写吧,这是其中的一个链接。https://liushuaiyang.oss-cn-shanghai.aliyuncs.com/nest-docs/image/第11章-30.png

可以打开,而且我试了转换你这个也是正常成功的,那还是附上日志看看吧

@Mr-Jies
Copy link
Author

Mr-Jies commented Mar 14, 2024

这种一般是没有权限,你可以尝试一下那个地址能不能外部打开显示?

不能外部显示,打开链接就把图片下载了

看你截图是阿里云的对象存储,这个检查你的桶是不是私有读写吧,只能你自己看的

不会是私有读写吧,这是其中的一个链接。https://liushuaiyang.oss-cn-shanghai.aliyuncs.com/nest-docs/image/第11章-30.png

可以打开,而且我试了转换你这个也是正常成功的,那还是附上日志看看吧

image

在mac上日志怎么看?

@88250
Copy link
Member

88250 commented Mar 14, 2024

做一次网络图片转换操作,然后上传 工作空间/temp/siyuan.log

@Mr-Jies
Copy link
Author

Mr-Jies commented Mar 14, 2024

做一次网络图片转换操作,然后上传 工作空间/temp/siyuan.log

I 2024/03/14 10:22:16 database.go:1244: closed database
I 2024/03/14 10:22:16 conf.go:958: cleared workspace temp
I 2024/03/14 10:22:17 sync.go:713: sync websocket closed
I 2024/03/14 10:22:17 conf.go:603: exited kernel
I 2024/03/14 10:23:36 working.go:146:
___ ___ ___ ___
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ /
/::\ | |:| ___ \ :\ / /://::\ __:
//:/ /:/:\ _/:_ ||:| /
/\ __:\ /
/:/ /:/:\ /_/::::::::
\ :/:/
/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~~/
\ ::/ /:/ _::/ ~:\ \ :\ /:/ \ ::/ \ :\ ~~~
_
/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
/
/:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2024/03/14 10:23:36 runtime.go:74: kernel is booting:
* ver [3.0.3]
* arch [arm64]
* os [darwin]
* pid [40569]
* runtime mode [prod]
* working directory [/Applications/SiYuan.app/Contents/Resources]
* read only [false]
* container [std]
* database [ver=20220501]
* workspace directory [/Users/11111111/document/siyuan笔记]
I 2024/03/14 10:23:36 runtime.go:123: use network proxy [system]
I 2024/03/14 10:23:36 serve.go:115: kernel [pid=40569] http server [127.0.0.1:50828] is booting
I 2024/03/14 10:23:36 sync.go:146: sync before boot
I 2024/03/14 10:23:36 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:36 pandoc.go:132: built-in pandoc [ver=3.1.1, bin=/Users/11111111/document/siyuan笔记/temp/pandoc/bin/pandoc]
I 2024/03/14 10:23:36 conf.go:1039: pandoc initialized, set pandoc bin to [/Users/11111111/document/siyuan笔记/temp/pandoc/bin/pandoc]
I 2024/03/14 10:23:36 repo.go:595: walk data [files=3881] cost [92.29025ms]
I 2024/03/14 10:23:36 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:37 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:37 s3.go:121: downloaded object [repo/refs/latest]
I 2024/03/14 10:23:37 s3.go:121: downloaded object [repo/indexes/980b8af38207eb7cd9b57836229f57911111111]
I 2024/03/14 10:23:37 sync.go:1592: got cloud latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:37 repository.go:1196: boot get sync cloud files elapsed [0.53s]
I 2024/03/14 10:23:37 blocktree.go:495: read block tree [33 MB] to [/Users/11111111/document/siyuan笔记/temp/blocktree], elapsed [0.10s]
I 2024/03/14 10:23:37 conf.go:795: database size [196 MB], tree/block count [890/76323]
I 2024/03/14 10:23:37 working.go:192: kernel booted
I 2024/03/14 10:23:37 box.go:76: auto stat [trees=890, blocks=76323, dataSize=489 MB, assetsSize=438 MB]
I 2024/03/14 10:23:37 disk.go:33: disk usage [total=245 GB, used=184 GB, free=61 GB]
I 2024/03/14 10:23:37 serve.go:128: reverse proxy server [127.0.0.1:6806] is booting
I 2024/03/14 10:23:55 conf.go:547: exiting kernel [force=false, execInstallPkg=0]
I 2024/03/14 10:23:55 sync.go:192: sync before exit
I 2024/03/14 10:23:55 repository.go:1258: syncing data repo [device=E970C792-7D06-57DA-8765-11111111, kernel=x6bjq1q, provider=2, mode=a/false]
I 2024/03/14 10:23:55 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:55 repo.go:595: walk data [files=3881] cost [72.250917ms]
I 2024/03/14 10:23:55 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:55 s3.go:94: uploaded object [repo/lock-sync]
I 2024/03/14 10:23:55 ref.go:50: got local latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:55 s3.go:121: downloaded object [repo/refs/latest]
I 2024/03/14 10:23:56 s3.go:121: downloaded object [repo/indexes/980b8af38207eb7cd9b57836229f57911111111]
I 2024/03/14 10:23:56 sync.go:1592: got cloud latest [device=E970C792-7D06-57DA-8765-11111111/darwin, id=980b8af38207eb7cd9b57836229f57911111111, files=3881, size=488 MB, created=2024-03-14 10:18:23]
I 2024/03/14 10:23:56 s3.go:138: removed object [repo/lock-sync]
I 2024/03/14 10:23:56 repository.go:1315: synced data repo [device=E970C792-7D06-57DA-8765-11111111, kernel=x6bjq1q, provider=2, mode=a/false, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=167 kB] in [0.45s], merge result [conflicts=0, upserts=0, removes=0]

I 2024/03/14 10:23:56 database.go:1244: closed database
I 2024/03/14 10:23:56 conf.go:958: cleared workspace temp
I 2024/03/14 10:23:56 sync.go:713: sync websocket closed
I 2024/03/14 10:23:57 conf.go:603: exited kernel

这是追加的日志

![](//liushuaiyang.oss-cn-shanghai.aliyuncs.com/nest-docs/image/第04章-1.png)
这是typora上看的,他图片这里地址没有https的,但是siyuan上自动添加了https,有关系吗?

typora的
image

siyuan的
image

@Mr-Jies
Copy link
Author

Mr-Jies commented Mar 14, 2024

做一次网络图片转换操作,然后上传 工作空间/temp/siyuan.log

刚刚试了试,确实是这样
![](//liushuaiyang.oss-cn-shanghai.aliyuncs.com/nest-docs/image/第04章-1.png)这样不能转
但是![](https://liushuaiyang.oss-cn-shanghai.aliyuncs.com/nest-docs/image/第04章-1.png)这样是可以的,

但是他们都能显示图片。

希望支持该功能

@88250
Copy link
Member

88250 commented Mar 14, 2024

好的,我们将 // 等同于 https:// 处理。

@88250 88250 reopened this Mar 14, 2024
@88250 88250 self-assigned this Mar 14, 2024
@88250 88250 changed the title 图片转为本地图片无法进行。提示:该文档不存在网络图片 Convert network images to local supports // Mar 14, 2024
@88250 88250 added this to the 3.0.4 milestone Mar 14, 2024
@88250 88250 closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants