Imgur

by Kirill Gavrilov
5
4
3
2
1
Score: 60/100

Description

The Imgur plugin allows users to upload images to Imgur directly from Obsidian, helping to reduce the size of local vaults. It supports both anonymous and authenticated uploads, giving users the option to link images to their Imgur account or keep them private. Users can upload images by pasting from the clipboard or dragging files into their notes. The plugin supports animated GIFs during drag-and-drop uploads and makes it easier to share notes with images, as only a single file needs to be shared. By uploading images remotely, users avoid cluttering their vault with image files and can also reduce the size of cloud backups or git repositories. This is particularly useful for users who frequently add screenshots or images to their notes, such as students or researchers.

Reviews

No reviews yet.

Stats

257
stars
59,907
downloads
94
forks
1,941
days
435
days
553
days
10
total PRs
1
open PRs
7
closed PRs
2
merged PRs
71
total issues
29
open issues
42
closed issues
90
commits

Latest Version

2 years ago

Changelog

  • exposed local image upload feature with command palette

README file from

Github

Imgur Plugin for Obsidian

Maintainability Rating Installations count

This plugin uploads images to imgur.com instead of storing them locally in your vault.

obsidian-imgur-plugin-demo

Why?

Obsidian stores all the data locally by design (which is perfect for text and, in my opinion, can be improved for images). If you often add pictures to your notes, your vault can quickly grow in size. Which in turn can lead to reaching limits if you use free plans of cloud storage services to sync your notes or can lead to growth of repository size if you use git to back up your notes.

This plugin is a perfect solution for people who paste images to their notes on daily basis (i.e. students making screenshots of lecture slides) and do not want to clutter their vaults with image files.

Having remote images also makes it much easier to share a note with anyone else, you will only need to share a single file.

If you are uncertain if this solution is for you, you can check out the FAQ section and/or a video created by @santiyounger discussing pros and cons of this approach

Santi Younger - Use Images Like A Pro

Features

  • Upload images anonymously or to your Imgur account
  • Upload images by either pasting from the clipboard or by dragging them from the file system
  • Animated gifs upload support on drag-and-drop

Installation

Install the plugin via the Community Plugins tab within Obsidian

Getting started

Generating Client ID

For this plugin to work reliably and to avoid hitting daily rate limits from using single shared Client ID, it was decided that each user should create his own "Client ID". Here are the steps:

  1. If you do not have an Imgur account, you need to get one first - follow https://imgur.com/register
  2. Being authenticated, go to https://api.imgur.com/oauth2/addclient
  3. Use any name for "Application name". For example: "Obsidian Imgur plugin"
  4. Choose "OAuth 2 authorization with a callback URL"
  5. Important: use obsidian://imgur-oauth as an "Authorization callback URL" value
  6. Fill in the "Email" field and proceed to get your Client ID

Configure just received Client ID in Obsidian Imgur plugin settings1.

After creation, Client ID can be managed at: https://imgur.com/account/settings/apps

Authenticated upload

Go to plugin's settings, select 'Authenticated Imgur upload' and complete authentication. That's all! Now you are ready to make notes and upload all your images remotely. You will see all your uploaded images at https://your_login.imgur.com/all/

Anonymous upload

You might not want to see your Obsidian images tied to Imgur account.

For this case there is an 'Anonymous Imgur upload' option.

FAQ

Q: How secure this approach is?
A: Nobody sees your uploaded image unless you share a link or someone magically guesses an URL to your image.

Q: Can I remove a remote image uploaded by accident?
A: For authenticated uploads - yes, go to https://your_login.imgur.com/all/, for anonymous uploads - no (it is technically possible, but you will need a deleteHash which is not recorded. I would record it, but there is no place for logging in Obsidian yet)

Q: For how long an image stays at imgur.com? Is there a chance to lose the data?
A: For authenticated uploads, I guess they are never deleted. What about anonymous uploads? Earlier it was stated on Imgur website that the image you upload stays forever. I think this is true since 2015. Today I could not find this statement on Imgur website. I can assume that images that did not receive any view for years, can be removed, but there is nothing to worry about. You can read my detailed thoughts on this in discussions

Q: Imgur supports videos. Does the plugin support videos upload?
A: No. Initially, I did not consider videos upload support since there is no Markdown syntax to embed videos. On the other hand, you can simply use <video> HTML tag, so I will probably add support for videos in future

Q: Can it upload images to some other service?
A: For now, there are no plans to support other image hosting solutions, but it should not be difficult for you to make a fork and create your own implementation of ImageUploader interface.

Discussion

If you have any questions/suggestions, consider using GitHub Discussions. There is also a plugin's thread on Obsidian forum.

Known limitations

  • you can not paste animated gifs from the clipboard (they initially get copied as a static images to the clipboard). Use drag and drop instead if you want to upload an animated gif.
  • there are daily limits for using Imgur API using associated with particular Client ID.

Known issues

  • Sometimes Imgur can reject your request to upload an image for no obvious reason. The error usually reported in this case is a failed CORS request, which does not allow Obsidian to proceed with image upload. If you face this problem, no action required from your side: just wait, and it will disappear soon. Whenever the plugin fails to upload an image remotely, it will fall back to the default method of storing an image locally.

Contribution

Contributions are welcomed. Check out the DEVELOPMENT.md to get started with the code.

Your support

If this plugin is helpful to you, you can show your ❤️ by giving it a star ⭐️ on GitHub. You can also buy me a coffee using Ko-fi:

ko-fi

Footnotes

  1. You will only need to configure Client ID in Imgur plugin settings, secret is not required.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Google Drive Sync
a year ago by Richard Xiong
A plugin to make Obsidian work in Google Drive to enable access to iOS.
Pixel Perfect Image
a year ago by Johan Sanneblad
Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, edit image in external editor, and much more.
Copy Image
2 years ago by Felipe D.S. Lima
Easily copy image to clipboard by right clicking image.
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.
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.
Image Uploader
5 years ago by Creling
Webdav File Explorer
3 years ago by red0orange
Cloudinary Uploader
4 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Custom Image Auto Uploader
a year ago by HaierKeys
You can batch download images from your notes on 💻 desktop, 📱 iOS, and 🤖 Android platforms, and batch upload and save them to a remote server, home NAS, or cloud storage (such as Alibaba Cloud OSS, Amazon S3, Cloudflare R2, MinIO). Additionally, you can stretch, crop, and resize the images.
Minio Uploader
2 years ago by Seebin
Upload images, videos, audio, pdf, and other files to Minio OSS.
Image Classify Paste
2 years ago by tianfx
Attachment Uploader
2 years ago by zhuxining
An attachment uploader plugin for Obsidian
Image Size
a year ago by Jie Zhang
Set the default size for pasted images.
Enhanced Publisher
a year ago by Cube
增强的Obsidian发布插件,支持图片自动存储、HTML预览和发布到微信公众号等内容平台
MrDoc
6 months ago by zmister
An Obsidian plugin for MrDoc that enables two-way synchronization between local Obsidian documents and MrDoc.一个 Obsidian 的 MrDoc 插件,用于 Obsidian 本地文档与 MrDoc 的双向同步
Hash Pasted Image
2 years ago by Minh Vương
Auto rename pasted images added to the vault via hash algorithm SHA-512
Enhanced Image
2 years ago by situ2001
Enhance the experience of image in Obsidian, seamlessly.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
WebDAV Image Uploader
9 months ago by ste
Uploads, downloads and deletes images on WebDAV server within Obsidian notes.
Pasterly
a year ago by easternkite
An Obsidian plugin that automatically uploads clipboard images to Firebase Storage and generates markdown links
Tencent COS for Imgur
a year ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
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.
ImgBB Uploader
2 years ago by Jordan Handy
An image uploader to imgBB for Obsidian
EUpload
a year ago by Appleex
Obsidian 插件,专用于上传文件到存储仓库。目前支持 Lskypro(兰空图床),后续有需求会引入其它存储方式,如:Github/Gitee等等。
Lskypro Upload V2
a month ago by 3kk0
Auto upload local images to LskyPro.