njleonzhang / vscode-extension-mardown-image-paste

read the image from system clipborad, optimize the size, upload to CDN, and return you the CDN link.
https://marketplace.visualstudio.com/items?itemName=njLeonZhang.markdown-image-paste
57 stars 6 forks source link

Support for local folder #10

Open Jandev opened 4 years ago

Jandev commented 4 years ago

Loving the idea of this extension. Thought of creating it myself until I stumbled across yours.

I would personally like to have the clipboard image stored inside some local folder, like /images/ or /img/. This way the images can be pushed to my webhost and I'm not relying on some third party for hosting the images.

njleonzhang commented 4 years ago

@Jandev I think there are lots of markdown editors that support local folder.

Jandev commented 4 years ago

Very true indeed. Figured it might be a nice addition to this extension as the basics are pretty much the same (and I personally love to use VS Code for writing markdown 😀)

njleonzhang commented 4 years ago

You are a special user 😂 . I want to do something different, so I have not implement your feature.

njleonzhang commented 4 years ago

it's not difficult, just implement a special uploader for local folder storage, you can follow current code to implement yourself and submit a PR.

https://github.com/njleonzhang/vscode-extension-mardown-image-paste/tree/master/src/CdnUploader

Jandev commented 4 years ago

Will do. Sounds like a nice excercise for me. Hopefully find some time to do this soonish.