This plugin automatically uploads images in Obsidian and replaces them with online links, supporting multiple image storage services including GitHub, Qiniu Cloud, and Samba.
- Clipboard Image Upload: Automatically upload and insert an online link when pasting an image from the clipboard into an Obsidian note.
- Drag-and-Drop Image Upload: Automatically upload and insert an online link when dragging and dropping an image file into an Obsidian note.
- File Menu Upload: Upload selected image files via the file context menu and replace them with online links.
- Multiple Storage Services: Supports uploading images to GitHub, Qiniu Cloud, and Samba.
- Domain Blacklist: Configure a blacklist of domains to prevent image uploads from specified sources.
- Install gopic: For more details, please refer to https://github.com/OSTGO/gopic
- Download the Plugin: Download the plugin code from GitHub or other sources.
- Copy the Plugin: Place the plugin files in the Obsidian plugins directory (typically
<Your Obsidian Directory>/plugins
). - Enable the Plugin: Open Obsidian, go to Settings -> Community Plugins, find and enable the Image Auto Upload plugin.
- Copy an image to your clipboard.
- Paste it into an Obsidian note, and the plugin will automatically upload the image and insert the link.
- After pasting, the image will be replaced with an online link.
- Drag and drop an image file into an Obsidian note.
- The plugin will automatically upload the image and insert the link.
- Right-click the image file you want to upload in Obsidian's file explorer.
- Select the “Upload” option, and the plugin will automatically upload the image and replace it with an online link.
Go to Obsidian Settings -> Image Auto Upload Plugin Settings to configure the following options:
Select the primary storage service for image uploads. The following options are supported:
- GitHub
- Qiniu Cloud
- Samba
Set the path to the gopic
tool used for uploading images.
Enable or disable each upload service in the plugin settings:
- GitHub: Enable or disable GitHub upload service.
- Qiniu Cloud: Enable or disable Qiniu Cloud upload service.
- Samba: Enable or disable Samba upload service.
Configure a blacklist of domains to prevent image uploads from specified sources. Separate multiple domains with commas, for example: example.com,badsite.org
.
- Ensure the gopic tool path is set correctly.
- Check your network connection to ensure it can access the target storage service.
- Check the error messages in the Obsidian console output for more debugging information.
- Contributions and feedback are welcome. Create an issue or submit a pull request on GitHub.
We welcome contributions and feedback from the community. If you have any suggestions or encounter any issues, please create an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. For more details, see the LICENSE file.