GithubHelp home page GithubHelp logo

acediazzz / obsidian-image-auto-upload-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renmu123/obsidian-image-auto-upload-plugin

0.0 0.0 0.0 489 KB

auto upload image with picgo

License: MIT License

JavaScript 0.94% TypeScript 99.06%

obsidian-image-auto-upload-plugin's Introduction

中文文档

Obsidian Image Auto Upload Plugin

This plugin can help you to auto upload image by PicGo PicGo-Core PicList

You should restart obsidian after updating the plugin.

Start

  1. install the picgo and config it
  2. open the tool and open the setting "设置 server"
  3. install the plugin in obsidian
  4. open the plugin setting, and set the "picGo server" http://127.0.0.1:{{port in picgo}}/upload(example:http://127.0.0.1:36677/upload
  5. try paste image

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. Use this feature, you can upload image to different picbeds in different vaults.

Features

Upload when paste image

When you paste image to obsidian, this plugin will auto upload you image.

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

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

Because of the bug in PicGo 2.3.0-beta7, you can not use this feature. you can install other PicGo version.

---
image-auto-upload: true
---

Upload all local images file by command

press ctrl+P and input upload all images,enter, then will auto upload all local images

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

Now you can upload image by contextMenu in edit mode.

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

obsidian-image-auto-upload-plugin's People

Contributors

renmu123 avatar hua03 avatar kuingsmile avatar gavvvr avatar klaudioz avatar shioshoyin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.