gmsz-160395 downloads粘贴/拖拽图片自动保存为WebP(质量75%、可缩放),按笔记名自动命名,笔记重命名时图片同步重命名。
Automatically convert pasted/dragged images to WebP format, save them to a custom folder with note-based naming, sync image renames when notes are renamed, batch rename images across all notes, and scan for unused/duplicate images.
自动将粘贴/拖拽的图片转换为 WebP 格式,按笔记名称自动命名保存到指定文件夹,笔记重命名时同步更新图片名称及全库引用,支持批量重命名所有笔记图片,并可扫描未使用和重复的图片。
{note-name}-image-{index}.webp, e.g. MyNote-image-01.webp.{笔记名}-image-{序号}.webp,例如 我的笔记-image-01.webp。图片).图片)。Auto WebP Image ManagerAuto WebP Image Managermain.js, manifest.json, and styles.css from the latest releaseauto-webp-image-manager in your vault's .obsidian/plugins/ directorymain.js、manifest.json 和 styles.css.obsidian/plugins/ 目录下创建名为 auto-webp-image-manager 的文件夹Ctrl+V (or drag an image file into the editor)Ctrl+V 粘贴图片(或将图片文件拖入编辑器)Open the command palette with Ctrl+P and search for:
按 Ctrl+P 打开命令面板,搜索:
| Command / 命令 | Description / 说明 |
|---|---|
| 重命名当前笔记中的图片 | Rename all images in the current note to {note-name}-image-{index}.webp format. Non-WebP images are converted to WebP, original files are moved to recycle bin. / 将当前笔记中的所有图片重命名为标准格式,非 WebP 自动转换,原文件移到回收站。 |
| 批量重命名所有笔记中的图片 | Batch process all notes in the vault. Already-formatted images are skipped. Progress shown every 10 notes. / 批量处理库中所有笔记,已符合规范的图片跳过,每处理10篇显示进度。 |
| 扫描未使用和重复的图片 | Scan for images not referenced by any note and duplicate images with identical content. Interactive modal for review and one-click deletion. / 扫描未被引用的图片和内容重复的图片,交互式弹窗可勾选并一键删除。 |
| Setting / 设置 | Default / 默认值 | Description / 说明 |
|---|---|---|
| Image Folder / 图片文件夹 | 图片 |
Folder to store converted images / 存储转换后图片的文件夹 |
| Quality / 质量 | 75% |
WebP compression quality (1-100) / WebP 压缩质量 (1-100) |
| Resize Enabled / 启用缩放 | true |
Whether to resize large images / 是否缩放大图片 |
| Max Width / 最大宽度 | 1920 |
Maximum image width in pixels / 图片最大宽度(像素) |
| Max Height / 最大高度 | 1080 |
Maximum image height in pixels / 图片最大高度(像素) |
| Index Digits / 序号位数 | 2 |
Number of digits for image index (e.g. 2 → 01, 02) / 图片序号位数(如 2 → 01, 02) |
| Link Format / 链接格式 | wikilink |
Image link format: wikilink or markdown / 图片链接格式:wikilink 或 markdown |
| Rename On Note Rename / 笔记重命名时同步 | true |
Automatically rename images when note is renamed / 笔记重命名时自动重命名图片 |
| Rename Shared Images / 重命名共享图片 | false |
Rename images referenced by other notes (may break links) / 重命名被其他笔记引用的图片(可能破坏链接) |
| Handle Paste / 处理粘贴 | true |
Convert images on paste / 粘贴时转换图片 |
| Handle Drop / 处理拖拽 | true |
Convert images on drag-and-drop / 拖拽时转换图片 |
For a note named My Note:
My Note-image-01.webpMy Note-image-02.webpMy Note-image-03.webp对于名为 我的笔记 的笔记:
我的笔记-image-01.webp我的笔记-image-02.webp我的笔记-image-03.webpWhen a note is renamed, the plugin checks each image:
笔记重命名时,插件会检查每张图片:
The scan command provides two categories:
扫描命令提供两个分类:
MIT License