Tencent COS for Imgur

by bobostudio
5
4
3
2
1
Score: 45/100

Description

The Tencent COS for Imgur plugin enhances image management in Obsidian by enabling seamless upload of images to Tencent Cloud Object Storage (COS). Users can drag and drop, copy and paste, or batch upload images directly from their notes to the cloud. The plugin automatically replaces local image links with cloud-hosted links and can delete local copies post-upload to save storage space. It supports custom region selection for storage buckets, ensuring flexibility for different user needs. This plugin simplifies image handling and helps users maintain efficient, centralized cloud storage for their Obsidian content.

Reviews

No reviews yet.

Stats

25
stars
735
downloads
5
forks
489
days
45
days
45
days
12
total PRs
2
open PRs
0
closed PRs
10
merged PRs
21
total issues
10
open issues
11
closed issues
9
commits

Latest Version

2 months ago

Changelog

feat: 添加外链图片同步到COS功能

  • 支持识别并上传Markdown中的外链图片到COS
  • 自动从URL获取图片并推断正确的MIME类型
  • 将外链图片URL替换为COS链接
  • 修复菜单名称为"同步COS"

README file from

Github

banner

腾讯云 COS 图床插件

这是一个用于 Obsidian 的图片上传插件,可将笔记中的图片自动上传到腾讯云 COS,实现云端存储、管理与备份。

  • 支持拖拽/粘贴上传多格式文件(PDF、MP3、MP4、WAV、DOC、DOCX、XLS、XLSX、PPT、PPTX、ZIP、MOV、WebM)

  • 本地和在线笔记备份,备份路径自定义

  • 鼠标悬浮图片,支持拖拽图片改图片大小(支持本地和线上图片)

  • 图片管理功能,可查看和删除已上传的图片,支持面板和命令方式打开

  • 新增设置图片链接的有效期,新增测试连接功能

  • 新增是否开启公有读存储桶

备份笔记演示

笔记备份

笔记备份

注意:

  • 本地笔记备份:这篇笔记的图片都是本地链接还没上传与备份
  • 在线笔记备份:这篇笔记的图片都是线上链接还没备份

拖拽图片演示

拖拽图片

新增的设置

设置

  • 备份路径支持自定义,默认当前笔记仓库下

  • 新增设置图片链接的有效期 20年,50年,永久

  • 测试连接可以调试你配置是否正常

设置打开图片管理面板

图片管理删除

命令打开图片管理面板

图片管理删除命令

是否开启公有读存储桶

腾讯云进入 COS 控制台 找到你的存储桶 → 权限管理 → 存储桶访问权限设置

公有读存储桶

公有读存储桶

开启公有读存储桶 图片为短链接如 https://xxx.com/20260210143554.png

建议:如果图片是公开的(如博客配图),可以开启公有读; 如果图片包含隐私内容,保持私有读模式更安全。

功能特点

  • 支持拖拽、复制粘贴上传图片
  • 自动替换本地图片链接为云端链接
  • 支持图片悬浮拖拽调整大小(本地与线上图片均支持)
  • 支持本地笔记备份与在线笔记备份,且备份路径可自定义
  • 支持图片管理面板(预览、分页、单选/全选、批量删除)
  • 支持通过命令面板或设置页快速打开图片管理
  • 支持图片链接有效期设置(20年、50年、永久)与刷新有效期
  • 支持测试连接,快速校验 COS 配置是否可用
  • 支持公有读存储桶开关,适配公开图片与私有图片场景
  • 支持存储桶地域选择与自定义存储路径前缀
  • 支持图片格式(PNG、JPG、JPEG、GIF、SVG、WebP)
  • 支持多格式文件上传(PDF、MP3、MP4、WAV、DOC、DOCX、XLS、XLSX、PPT、PPTX、ZIP、MOV、WebM)

新手快速上手(3分钟)

  1. 在腾讯云创建 COS 存储桶,并准备好 SecretId / SecretKey
  2. 在 Obsidian 安装并启用插件
  3. 在插件设置填写 SecretIdSecretKeyBucketRegion
  4. 点击“测试连接”确认配置可用
  5. 在笔记中直接拖拽或粘贴图片,自动上传并替换为云端链接

使用前准备

  1. 注册腾讯云账号并开通 COS 服务 开通 COS 服务
  2. 创建存储桶,记录存储桶名称(Bucket)和所在地域(Region)
  3. 获取 SecretIdSecretKey
  4. 访问 腾讯云控制台
  5. 进入「访问密钥」-> API 密钥管理

获取密钥

跨域访问 CORS 设置(注意)

复制到来源 Origin 的输入框内

app://obsidian.md

跨域访问 CORS 设置1 跨域访问 CORS 设置2

❗❗❗ 注意想在手机上使用需要把 app://obsidian.md 改成 *

  1. 打开 Obsidian 设置
  2. 点击 Community plugins
  3. 搜索 tencent
  4. 安装并开启插件
  5. 填写图床信息
  6. 笔记上传图片
{1} {2} {3}
{4} {5} {6}
{7} {8} {9}
{10} {11}

电脑端安装方法

  1. 打开 Obsidian 设置
  2. 进入 "第三方插件" -> "浏览"
  3. 搜索 "Obsidian Imgur Plugin" 或者浏览器访问 Obsidian Imgur Plugin
  4. 点击安装并启用插件

启用插件

配置说明

  1. 进入插件设置页面
  2. 填写以下信息:
    • SecretId:腾讯云 API 密钥 ID
    • SecretKey:腾讯云 API 密钥 Key
    • Bucket:存储桶名称(例如:my-bucket-1250000000
    • Region:存储桶所在地域
    • 存储路径前缀:文件在 COS 中的目录(例如:images

存储路径前缀说明

比如你设置 img

存储路径前缀说明1

那你的 COS 的图片就会上传到 /img 文件夹下

存储路径前缀说明1

使用方法

方式一:拖拽上传

  • 直接将图片文件拖拽到编辑器中
  • 插件会自动上传图片并插入云端链接
  • 支持拖拽非图片文件(需在设置中开启"启用多格式文件上传")

方式二:复制粘贴

  • 复制图片后,直接在编辑器中粘贴
  • 插件会自动上传图片并插入云端链接
  • 支持粘贴非图片文件(需在设置中开启"启用多格式文件上传")

方式三:本地/线上笔记备份

  1. 在插件设置中先配置备份路径(默认在当前仓库下,可自定义)
  2. 按需选择备份方式并执行
  3. 备份类型说明:
    • 本地笔记备份:适用于图片仍为本地链接、尚未上传/备份的笔记
    • 在线笔记备份:适用于图片已是线上链接、尚未备份的笔记
  4. 执行后会按设置路径生成对应备份文件

方式四:图片管理

  1. 通过命令面板

    • Ctrl+P(Mac: Cmd+P)打开命令面板
    • 输入 "管理COS图片" 并选择该命令
  2. 通过设置页面

    • 进入插件设置页面
    • 点击 "图片管理" 部分的 "打开图片管理" 按钮
  3. 功能说明

    • 查看配置的存储路径下所有已上传的图片
    • 支持图片预览和基本信息显示(文件名、大小、上传时间)
    • 支持单选/全选图片
    • 支持批量删除选中的图片,删除前会弹出确认对话框
    • 支持分页加载,避免一次性加载过多图片
    • 删除操作会同步到COS,确保云端存储的一致性

方式五:多格式文件上传

  1. 在插件设置中开启 "启用多格式文件上传" 开关
  2. 默认支持的文件格式:pdf,mp3,mp4,wav,doc,docx,xls,xlsx,ppt,pptx,zip,mov,webm
  3. 如需添加其他格式,可在 "允许的文件类型" 设置中添加扩展名(用英文逗号分隔)
  4. 拖拽或粘贴非图片文件到编辑器中,插件会自动上传并插入链接
  5. 注意:非图片文件插入的是 [文件名](URL) 格式的链接

操作预览

操作预览

注意事项

  1. 首次使用请确保已正确配置腾讯云 COS 相关信息
  2. 上传前请确保网络连接正常
  3. 建议定期检查存储桶用量,避免超出配额
  4. 请妥善保管 SecretId 和 SecretKey,不要泄露给他人
  5. 存储路径前缀不要以斜杠开头或结尾

支持与反馈

如果您在使用过程中遇到任何问题,或有功能建议,请通过以下方式反馈:

打赏

许可证

本项目采用 MIT 许可证。详见 LICENSE 文件。

Copyright (c) 2024 bobostudio

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Add links to current note
6 years ago by MrJackphil
This plugin adds a command which allows to add a link to the current note at the bottom of selected notes
Adjacency Matrix Maker
5 years ago by SkepticMystic
Creative an interactive adjacency matrix of your Obsidian vault
AI Tagger
2 years ago by Luca Grippa
Simplify tagging in Obsidian. Instantly analyze and tag your document with one click for efficient note organization.
Alias Management
2 years ago by WithMarcel
Identify duplicate notes based on similar aliases and filenames in Obsidian.
Another Sticky Headings
2 years ago by Zhou Hua
Antidote Grammar Checker Integration
3 years ago by Heziode
An Obsidian integration of Antidote, a powerful grammar checker
Attachment Uploader
2 years ago by zhuxining
An attachment uploader plugin for Obsidian
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Auto Definition Link
2 years ago by Nolan Carpenter
This is a plugin for Obsidian to automatically create links to blocks in your vault
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Binary File Manager
4 years ago by qawatake
An Obsidian plugin to manage binary files
BookFusion
2 years ago by BookFusion
BookFusion Obsidian Plugin
Canvas Mindmap Helper
2 years ago by Tim Smart
Clojure Plugin Host
a year ago by Vladimir "farcaller" Pouzanov
A Clojure plugin host, allowing the creation of simple Clojure-based plugins right inside Obsidian
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Dangerzone Writing
5 years ago by Alexis Rondeau
A plugin that forces you to write for X seconds. If you pause for more than 5 seconds, everything you've written in this note is DELETED.
Discord Rich Presence
6 years ago by Luke Leppan
Update your Discord Status to show your friends what you are working on in Obsidian. With Discord Rich Presence.
Discordian Theme
5 years ago by @radekkozak
Discordian plugin for tweaking Discordian theme
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Ego Rock
2 years ago by Ashton Eby
An obsidian plugin that implements a basic taskwarrior UI for listing and modifying tasks.
Electron Window Tweaker
5 years ago by mgmeyers
EUpload
a year ago by Appleex
Obsidian 插件,专用于上传文件到存储仓库。目前支持 Lskypro(兰空图床),后续有需求会引入其它存储方式,如:Github/Gitee等等。
Expiration-Date-Tracker
3 years ago by Marius Wörfel
Opsidian plugin to keep track of all expiration dates, for example, for your groceries.
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
External Rename Handler
a year ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
3 years ago by Ken Lim
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Filtered Opener
2 years ago by Roman Kubiv
Sets of notes defined by filters to open notes.
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Footlinks
5 years ago by Daha
Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
Git File Explorer
2 years ago by Mateus Molina
Gitlab Wiki Exporter
2 years ago by Josef Rabmer
Google Drive Sync
2 years ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
Graphic Organizer
2 months ago by Nick Le Guillou - Superhuman Curiosity
Interactive tree view for visualizing and managing your vault's file hierarchy.
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
Hash Pasted Image
2 years ago by Minh Vương
Auto rename pasted images added to the vault via hash algorithm SHA-512
Hide Sidebars on Window Resize
5 years ago by NomarCub, Michael Hanson
A simple Obsidian plugin to hide the sidebars when the window gets narrow.
Hoarder Sync
a year ago by Jordan Hofker
An Obsidian.md community plugin that allows syncing with https://karakeep.app/
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Hugo codeblock highlight
2 years ago by aarol
Highlights lines in code blocks using Hugo's hl_lines syntax
Image to text OCR
2 years ago by Dario Baumberger
Convert a image in your note to text.
Image Upload Toolkit
3 years ago by Addo Zhang
An obsidian plugin for uploading local images embedded in markdown to remote store and export markdown for publishing to static site.
Image Uploader
5 years ago by Creling
ImgBB Uploader
2 years ago by Jordan Handy
An image uploader to imgBB for Obsidian
Imgur
5 years ago by Kirill Gavrilov
Pastes images right to imgur.com
Immich
2 years ago by Talal Abou Haiba
Inbox Organiser
a year ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
InlineCodeHighlight
3 years ago by Dimava
Insert Multiple Attachments
a year ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
JavaScript Init
5 years ago by ryanpcmcquen
Run custom JavaScript in Obsidian.
KeepSidian
2 years ago by lc0rp
Lineage
2 years ago by ycnmhd
Gingko-like interface in obsidian
Link indexer
6 years ago by Yuliya Bagriy
Local Any Files
a year ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Lskypro Upload V2
2 months ago by 3kk0
Auto upload local images to LskyPro.
Luhman
5 years ago by Dylan Elliott
Markdown Furigana
5 years ago by Steven Kraft
Simple Markdown to Furigana Rendering Plugin for Obsidian
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Markdown Media Card
2 years ago by Zhou Hua
Media Companion
a year ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Metadata Icon
2 years ago by Benature
change metadata entry icon
Minio Uploader
2 years ago by Seebin
Upload images, videos, audio, pdf, and other files to Minio OSS.
Mochi Cards Exporter
5 years ago by kalbetre
Mochi Cards Exporter Plugin for Obsidian
Movie Search
2 years ago by Gubchik123
Obsidian plugin to help you create movie notes.
Mxmind Mindmap
2 years ago by mxmind
mxmind for obsidian plugin
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Nexus AI Chat Importer
2 years ago by Superkikim
Note archiver
3 years ago by thenomadlad
NotePix
8 months ago by Ayush Parkara
NotePix automatically uploads images, screenshots from your Obsidian vault to a designated GitHub repository. It then seamlessly replaces the local link with a fast URL, keeping your vault lightweight and portable.
Notes dater
3 years ago by Paul Treanor
Adds created_on and updated_on dates of the active note to status bar
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
oblogger
3 years ago by loftTech
tag explorer and frontmatter logger plugin for obsidian
Open cards in imdone.
5 years ago by saxmanjes
Open cards in imdone from obsidian
Open File by Magic Date
4 years ago by simplgy
Orion Publish
2 years ago by Sean Collings
PARA Workflower
2 years ago by KevTheDevX
Helpful commands for starting and working in your vault with the PARA method.
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Pasterly
a year ago by easternkite
An Obsidian plugin that automatically uploads clipboard images to Firebase Storage and generates markdown links
PF2e Statblocks
2 years ago by Tyler Pixley
Allows Obsidian to render Pathfinder 2e statblocks cleanly, using only Markdown-based syntax.
Plugin Reloader
2 years ago by Benature
manual reload plugins
Prompt ChatGPT
2 years ago by Coduhuey
Quadro
2 years ago by Chris Grieser (aka pseudometa)
Obsidian Plugin for social-scientific Qualitative Data Analysis (QDA). An open alternative to MAXQDA and atlas.ti, using Markdown to store data and research codes.
Readwise Community
5 years ago by renehernandez
Sync Readwise highlights into your obsidian vault
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Regex Pipeline
5 years ago by No3371
An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
Relay
2 years ago by System 3
Multiplayer Mode for Obsidian
Remote Fetch
9 months ago by Shaharyar
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
S3 Image Uploader
3 years ago by jvsteiner
This project implements an image uploader, similar to others offered by the community, with one important difference: you can provide your own s3 based storage, instead of relying on a third party service, such as imgur.
S3agle
2 years ago by Turner Monroe (turnercore)
Screwdriver
4 years ago by vorotamoroz
Seafile
2 years ago by conql
Search on Internet
5 years ago by Emile
Add context menu items in Obsidian to search the internet.
Show Current File Path
5 years ago by Ravi Mashru
Obsidian plugin to show the file path of the current file in the status bar
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
simple-sketch
2 years ago by Yoh
an Obsidian plugin to create minimal sketches
Structured Copy: Files & Folders
a year ago by SchmidA
Suggest Notes
2 years ago by Doggy-Footprint
sync-db-os
2 years ago by ketd
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Text Wrapper
3 years ago by smx0
Plugin for Obsidian
Timeline
5 years ago by George Butco
Obisdian.md plugin for creating timelines
Title index
5 years ago by renmu123
markdown_index is an extension that can add serial numbers to your markdown title.
Tokenz
2 years ago by Ferenc Moricz
Use any kind of short codes in Obsidian! Comes with a map for smileys (:), ;), ...) and one for emojis (:smile:, :wink:, ...).
Track-a-Lot
2 years ago by Iulian Onofrei
This is a tracker plugin for Obsidian
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Update Relative Links
4 years ago by val
Update Time
2 years ago by Sébastien Dubois
Obsidian plugin that updates front matter to include creation and last update times
Update time on edit
5 years ago by beaussan
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
WebDAV Explorer
2 months ago by 蓝星晓夜
WebDAV Explorer: Connect to WebDAV server, preview files directly in web view, and generate links through simple drag-and-drop.
Webdav File Explorer
3 years ago by red0orange
Workbench
6 years ago by ryanjamurphy
A plugin to help you collect working materials.
Yesterday
2 years ago by Dominik Mayer
Obsidian plugin providing Yesterday journaling support
Youglish
5 years ago by Noureddine Haouari
Use YouTube to improve your pronunciation. YouGlish plugin gives you fast, unbiased answers about how words is spoken by real people and in context.