Skip to content

Convert network images/assets to local supports URL-encoded local file names #9929

Closed
@kylehz

Description

@kylehz

网络图片转换为本地图片BUG

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

文字和图片是从sublimetext的markdown preview中复制过来的
点击下网络图片转换为本地图片时,无法下载file://开头的问题,提示:该文档中不存在网络文件

SCR-20231219-rqaz SCR-20231219-rpzg

Expected result

希望能复制图片到思源内部的本地图片目录中

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.11.3
- Operating System:  MacOS BigSur
- Browser (if used):

Log file

More information

No response

Activity

88250

88250 commented on Dec 19, 2023

@88250
Member

麻烦制作一个可重现问题的最小数据集上传以便测试,谢谢。

88250

88250 commented on Dec 19, 2023

@88250
Member

image

这个路径上的文件名是编码后的还是?

changed the title [-]网络图片转换为本地图片BUG[/-] [+]`Convert network images to local` supports URL-encoded local file names[/+] on Dec 19, 2023
self-assigned this
on Dec 19, 2023
added this to the 2.11.4 milestone on Dec 19, 2023
88250

88250 commented on Dec 19, 2023

@88250
Member

我们对 URL 编码的文件名进行了一定支持,请等新版本发布后帮忙测试,谢谢。

kylehz

kylehz commented on Dec 20, 2023

@kylehz
Author

file:///Users/bigsu/Downloads/siyuantest/%E4%B8%AD%E6%96%87/2.png
路径是url编码的
siyuantest.zip

88250

88250 commented on Dec 20, 2023

@88250
Member

好的,我这里测试正常了(昨晚发布的 dev),谢谢。

kylehz

kylehz commented on Dec 20, 2023

@kylehz
Author

我测试了dev2

1、点【网络图片转换为本地图片】测试正常了,点【网络资源文件转换本地】这个按钮还是报文档中不存在网络文件
image
image

2、还有就是从sublimetext的markdown preview复制过来的时候图片路径没有file://前缀,希望把这个图片直接复制到思源本地文件
image
image

siyuantest.zip

88250

88250 commented on Dec 20, 2023

@88250
Member
  1. 收到,稍后再改一下转换资源文件
  2. 这样复制的话只能做到复制地址
kylehz

kylehz commented on Dec 20, 2023

@kylehz
Author
  1. 收到,稍后再改一下转换资源文件
  2. 这样复制的话只能做到复制地址

问题2还是中文路径的问题,我试了英文路径是可以直接复制到思源本地文件的

6 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@kylehz

      Issue actions

        `Convert network images/assets to local` supports URL-encoded local file names · Issue #9929 · siyuan-note/siyuan