Repository navigation
Breaking changes
This release requires PicGo GUI or PicGo-Core 3.0.0 or above. CLI and Node.js users also need Node.js 20.19.0 or above. If you use an older PicGo version, keep using picgo-plugin-pic-migrater 1.4.0.
Feature
Support PicGo 3's upload pipeline. Image paths and URLs are passed to Core's path transformer, and upload results are matched to their original Markdown references by origin. Obsidian image embeds remain supported; multiple references to the same local image share one upload. The configured transformer is restored after migration, including when an upload fails.
Bug fix
- Prevent failed or reordered upload results from replacing the wrong image reference, and correctly rewrite Obsidian embeds when a normal Markdown image refers to the same file.
- Make the
includeandexcludeprompts distinguishable inpicgo set plugin pic-migrater. Chinese and English prompts now name the field, explain regular-expression matching, and describe the empty value. Related issue: #68.
兼容性变化
本版本需要 PicGo GUI 或 PicGo-Core 3.0.0 及以上版本。CLI 和 Node.js 项目还需要 Node.js 20.19.0 及以上版本。使用旧版 PicGo 的用户请继续使用 picgo-plugin-pic-migrater 1.4.0。
功能
适配 PicGo 3 上传流程,将图片路径和 URL 交给 Core 的 path transformer 处理,并根据上传结果的 origin 匹配原始 Markdown 引用。保留 Obsidian 图片嵌入支持,同一本地图片的多种引用共用一次上传。迁移结束或上传异常时,恢复原有 transformer 配置。
修复
- 防止部分上传失败或结果顺序变化时替换错图片;普通 Markdown 与 Obsidian 引用同一图片时,正确转换 Obsidian 嵌入语法。
- 改善
picgo set plugin pic-migrater的include和exclude配置提示。中英文提示均明确标注字段名、正则表达式用途及留空含义。关联 issue:#68。