yuhanbo-image-upload

approvedunreviewed

by 余汉波

Forked from Image auto upload

支持批量上传本地图片和右键上传单张图片,上传后自动替换笔记中的图片链接.

↓ 9 downloadsUpdated todayMIT

中文文档

yuhanbo-image-upload

A desktop fork of renmu123’s Image auto upload, distributed under the original MIT license. It uses PicGo, PicList, or PicGo-Core to upload images.

Upstream maintainer renmu123 gave public permission for this fork's community listing.

For manual installation, copy the built main.js and manifest.json to .obsidian/plugins/yuhanbo-image-upload/ in your vault, then enable yuhanbo-image-upload in Community plugins.

Privacy and external services

  • Local PicGo or PicList receives the selected attachment paths over HTTP. In remote server mode, the configured PicList endpoint receives the image bytes. PicGo-Core uses the locally installed command to access attachments and the system clipboard. Drag-and-drop can read the files explicitly dropped from outside the vault.
  • The configured uploader sends images to the image host you select. Hosting accounts, costs, and image visibility depend on that service. When you request a network-image download, the plugin fetches the image from its original host and saves it to the vault.
  • Uploader settings, including any credentials embedded in an endpoint URL, stay in the local plugin configuration. The plugin does not store image host passwords separately or collect telemetry. Keep the plugin's data file and custom endpoint URLs private.

Start

  1. Install the PicGo tool and configure it, refer to the official website
  2. Enable PicGo's Server service and remember the port number
  3. Install the plugin
  4. Open the plugin settings and set it to http://127.0.0.1:{{port set in PicGo}}/upload (e.g., http://127.0.0.1:36677/upload)
  5. Try to see if the upload is successful

Set picbed and configName

If you are using PicList (version >= 2.5.3), you can set the picbed and configName through URL parameters. Example: http://127.0.0.1:36677/upload?picbed=smms&configName=piclist This will upload the image to the smms picbed and use the piclist configName. Using this feature, you can upload images to different picbeds in different Obsidian vaults.

Features

Upload when paste image

When you paste an image to Obsidian, this plugin will automatically upload your image.

You can set image-auto-upload: false in frontmatter to control one file.

Supports ".png", ".jpg", ".jpeg", ".bmp", ".gif", ".svg", ".tiff", ".webp", ".avif"

Due to the bug in PicGo 2.3.0-beta7, you cannot use this feature. Please install another version of PicGo.

---

image-auto-upload: true
---

Upload all local images file by command

Open a note and run Upload all images from the command palette (Ctrl+P). The command uploads local Markdown images and wiki embeds, then replaces each successful reference with its hosted URL. Existing network images are preserved. Repeated references upload once, and failed attachments keep their original links.

Enable Replace images in other notes in the plugin settings to reuse the uploaded links in other notes that embed the same attachments. The switch is off by default.

download all internet to local

press ctrl+P and input download all images,enter, then will auto download all internet images to loacl, only test in win10

Upload image by contextMenu

Right-click a local image in Live Preview and select Upload image. This updates the current note. The plugin uses the attachment's full vault path, so other attachments with the same filename are unaffected.

Support drag-and-drop

Only work for picgo or picList app.

server mode

You can deploy PicList or PicList-Core in your server and upload to it.

Support PicList 2.6.3 later or PicList-Core1.3.0 later

You can not upload network in this mode. If you upload fail when you paste img, you can alse try to enable the mode.

Support picgo-core

You can install picgo-core with npm. Reference to doc

TODO

  • upload all local images file by command
  • support yaml to config if upload image
  • support picgo-core
  • support upload image from system copy selected image
  • support network image

Thanks

obsidian-imgur-plugin

👨‍💻 作者信息

余汉波 - 编程爱好者-量化交易和效率工具开发

🌐 相关链接

联系我们

联系我们 - 三人聚智-余汉波

证券开户(+V:yuhanbo758):证券开户免5万0.854,无门槛开量化QMT,送框架策略,支持VIP快速通道,也可开Ptrade | 余汉波 文档

三人聚智下载:sanrenjz - 三人聚智

codebot 下载:sanrenjz-codebot - 三人聚智-余汉波

三码合一

余汉波打赏码

🙏 致谢

感谢所有为本项目贡献代码和想法的开发者们!


⭐ 如果这个项目对您有帮助,请给它一个 Star!

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.