Image Uploader

by Creling
5
4
3
2
1
Score: 32/100

Description

Category: File Management

The Image Uploader plugin for Obsidian enables seamless image uploads directly from your clipboard to an image hosting service. Users can configure the plugin to resize images before uploading, specify the API endpoint, and set custom headers and body formats for the upload request. The plugin supports services like Imgur and Lsky-Pro, allowing for easy integration with various hosting platforms. It also includes a feature to upload all local images within a page at once, streamlining the process for users who need to manage multiple images in their notes. With its live preview support and customizable settings, this plugin enhances Obsidian's functionality for users working with visual content.

Reviews

No reviews yet.

Stats

42
stars
7,553
downloads
11
forks
1,753
days
933
days
933
days
2
total PRs
2
open PRs
0
closed PRs
0
merged PRs
16
total issues
8
open issues
8
closed issues
0
commits

Latest Version

3 years ago

Changelog

README file from

Github

Obsidian Image Uploader

This plugin could resize(optional) and upload the image in your clipboard to any image hosting automatically when pasting.

Changelog

  • 0.3.2
    • Add 'Upload All Local Images in This Page' command.
  • 0.3.1
    • Fix some minor problems.
  • 0.3.0
    • Support Obsidian Live Preview Editor.

Getting started

Settings

  1. Api Endpoint: the Endpoint of the image hosting api.
  2. Upload Header: the header of upload request in json format.
  3. Upload Body: the body of upload request in json format. Don't change it unless you know what you are doing.
  4. Image Url Path: the path to the image url in http response.
  5. Enable Resize: whether resizing images before uploading.
  6. Max Width: images that wider than this will be resized resized by the natural aspect ratio.

Examples

Imgur

Take Imgur as an example. The upload request is something like this:

curl --location --request POST 'https://api.imgur.com/3/image' \
--header 'Authorization: Client-ID {{clientId}}' \
--form 'image="R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"'

So, Api Endpoint should be https://api.imgur.com/3/image and Upload Header should be {"Authorization": "Client-ID {{clientId}}"}.

The response of the upload request is:

{
	"data": {
		"id": "orunSTu",
		"title": null,
		"description": null,
		"datetime": 1495556889,
		"type": "image/gif",
		"animated": false,
		"width": 1,
		"height": 1,
		"size": 42,
		"views": 0,
		"bandwidth": 0,
		"vote": null,
		"favorite": false,
		"nsfw": null,
		"section": null,
		"account_url": null,
		"account_id": 0,
		"is_ad": false,
		"in_most_viral": false,
		"tags": [],
		"ad_type": 0,
		"ad_url": "",
		"in_gallery": false,
		"deletehash": "x70po4w7BVvSUzZ",
		"name": "",
		"link": "http://i.imgur.com/orunSTu.gif"
	},
	"success": true,
	"status": 200
}

All you need is the image url http://i.imgur.com/orunSTu.gif, so Image Url Path should be data.link.

Lsky-Pro

Lsky-Pro is a open-sourced and self-hosted image hosting solution.

Thanks to @xaya1001 for this example.

api endpoint:https://img.domain.com/api/v1/upload

upload header: 
{
  "Authorization": "Bearer xxxx",
  "Accept": "application/json",
  "Content-Type": "multipart/form-data"
}

upload body: 
{
  "file": "$FILE"
}

Image Url Path: data.links.url

Thanks

  1. obsidian-imgur-plugin
  2. create-obsidian-plugin

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Image auto upload
5 years ago by renmu123
auto upload image with picgo
Imgur
5 years ago by Kirill Gavrilov
Pastes images right to imgur.com
Copy document as HTML
3 years ago by mvdkwast
Obsidian plugin: copy document as HTML, including images
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
Extract Highlights
5 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
Smart Context
a year ago by 🌴 Brian
Copy Inline Code
3 years ago by Ondrej Zavodny
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.
Export to HTML
a year ago by kalvn
Export a note as HTML in the clipboard or in a file.
JSONifier
5 years ago by Kjell Connelly
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
Relative Find
5 years ago by phibr0
Advanced Copy
2 years ago by leschuster
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
Image To Lskypro
3 years ago by NekouTarou
支持直接上传图片到图床Lsky,基于https://github.com/renmu123/obsidian-image-auto-upload-plugin.git改造。
Confluence Converter
a year ago by Addo Zhang
An Obsidian Plugin for Confluence
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Image Embedder
a year ago by Natalie Sumbo
Paste Image Rename and Convert
a year ago by iaos
An obsidian plugin that renames pasted images and covert formats
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Paste Image Into Property
a year ago by Nito
Convert Base64 to PNG
a year ago by Nykko Lin
Converts base64-encoded images to local PNG files for Obsidian.
Recursive Copy
2 years ago by datawitch
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 图床插件
Clipboard Manager
9 months ago by Ayush Raj
The clipboard obsidian plugin
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.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
ImgBB Uploader
2 years ago by Jordan Handy
An image uploader to imgBB for Obsidian
Paste as file link
8 months ago by Matthias Büge
This plugin is used to paste a text from the clipboard as a link to an existing obsidian note
Ghost Text
8 months ago by lawrencefeng17
Hanko
a year ago by Telehakke
Obsidian plugin.
Sonkil
9 months ago by ohyoungpark
Fix Line Endings on Copy
7 months ago by KiwiJanus
Lskypro Upload V2
2 months ago by 3kk0
Auto upload local images to LskyPro.