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

图片上传到图床了,但是新的md文件中的地址没有被替换 #64

Open
systemcaller opened this issue Sep 13, 2024 · 4 comments

Comments

@systemcaller
Copy link

原md文件地图片址:
image
插件配置:
image
选择文件执行后:
image

@colin4k
Copy link

colin4k commented Sep 29, 2024

我已提交了修复此问题的 pr,可以到我的仓库看看:
https://github.com/colin4k/picgo-plugin-pic-migrater

@wodepig
Copy link

wodepig commented Sep 30, 2024

插件的描述有问题. 上传成功后是把源文件的图片地址替换了.
新文件其实是备份文件,所以里面的图片还是本地的.你自己打开源文件看一眼就明白了,并不是bug

@colin4k
Copy link

colin4k commented Sep 30, 2024

插件的描述有问题. 上传成功后是把源文件的图片地址替换了. 新文件其实是备份文件,所以里面的图片还是本地的.你自己打开源文件看一眼就明白了,并不是bug

不是的,我确认过,主要问题是有一些图片的 url 不是以图片文件扩展名结尾,例如微信和知乎的都是这样,如下:
https://mmbiz.qpic.cn/mmbiz_png/n8UWicng6vIA4usX2sOyd5NibTrl07M89U5MMpQsicyoiatWVlib95H1w1Sricw08C6oQ2PicufjA073In29F9zEY5vdg/640?wx_fmt=png
这种就不会替换,所以我增加了正则表达式的匹配逻辑,对于这种也可以进行替换

@aqquser
Copy link

aqquser commented Nov 20, 2024

我已提交了修复此问题的 pr,可以到我的仓库看看: https://github.com/colin4k/picgo-plugin-pic-migrater

怎么使用啊?

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

4 participants