Skip to content

This script is used for uploading image and get markdown quote from file or clipboard (include screenshot).

License

Notifications You must be signed in to change notification settings

chaonan99/markdown-image-copy-windows

Repository files navigation

Introduction

This script is used for uploading image and get markdown quote from file or clipboard (include screenshot) by simply click ctrl+alt+c/w -> ctrl+v. Never worrying about copying image to markdown!

This script is based on this implementation, which use qiniu cloud as image storage and AutoHotkey to get hot key action. For MAC users, an altertive implementation is here.

Tools

Require: ConfigParser modual.

Install AutoHotkey from the official website and copy AutoHotkey.dll that match your system into windows/System32 folder

  • Qiniu cloud account Refer to this repo to find out how to get AK, SK and url of your storage.

Usage

Settings

  1. In config.ini, fill in your AK, SK, url and bucket.
  2. Modify upload_qiniu.ahk. Set all the three path to the absolute path of your program.
  3. Modify clipboard.py. Change the temporary store location of copied image to an already exist path.
  4. Double click upload_qiniu.ahk to execute AutoHotkey script.

Uploading from image file on the disk

You can change the hot key settings in upload_qiniu.ahk.

  1. Select an image file.
  2. Click ctrl+alt+c. A command window will show up.
  3. After the command window disappear, the markdown script is in the clipboard and you can use ctrl+v to copy that to your markdown file.

Uploading from screenshot and copied image.

  1. You should first make the image in the clipboard, either use ctrl+c or right-click it and clike Copy. This process can automatically be done by most screenshot software.
  2. Click ctrl+alt+w, again after the command window shows up and disappear, you can copy your markdown script.

License

MIT

Run program at startup

Follow this.

Enjoy using Markdown!

About

This script is used for uploading image and get markdown quote from file or clipboard (include screenshot).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published