Lepton icon indicating copy to clipboard operation
Lepton copied to clipboard

Support image file readering

Open glody opened this issue 7 years ago • 7 comments

The more we know about your system and use case, the more easily and likely we can help.

Environment info

  • OS: Windows 10
  • App Version (Command/Ctrl + ,): v1.5.1-alpha-1

Description of the problem / feature request / question:

essentially, gist is a repo, user can add any file to the repo. include image file, like .jpg ,png etc. Hope Lepton support image file, even upload image file

If possible, provide a sample gist or screenshot:

image

If possible, provide the log files

  • Mac: ~/Library/Application Support/Lepton/logs
  • Windows: C:\Users\<username>\AppData\Roaming\Lepton\logs
  • Linux: ~/.cached/Lepton/logs

The debug mode is recommended when producing the logs. You can send your log file to [email protected] if don't want to post it here.

glody avatar May 11 '18 02:05 glody

Thanks for the suggestion :)

I don't think GitHub Gist support images rendering, at least I don't see an interface for uploading images at this moment. (Of course, we can still hack it by copy&paste the binary chunk).

I would suggest sending this as a feature request to GitHub. Lepton might match it depending how this goes.

hackjutsu avatar May 12 '18 05:05 hackjutsu

Hi!, first of all, you created a very nice software! I am searching for image support also and I found it closed issue. But Github Gist actually supports images both by commiting them or commenting a image and linking it via its URL. This way, it is totally possible to have image support at Lepton. Any reason to don't do that? See you. Thanks!

thiagosouza avatar Jun 29 '18 17:06 thiagosouza

@thiagosouza

Sorry to reply late. Yes, gist supports image rendering in MD files and its Markdown-powered comments. But I don't find an option to upload an image in its online gist creation interface.

Do I miss something here?

image

hackjutsu avatar Jul 29 '18 22:07 hackjutsu

Maybe my question is, how to put an image to the gist for testing?

hackjutsu avatar Aug 10 '18 19:08 hackjutsu

@hackjutsu Use imgur api?

Insert markdown to editor

1a57danc3 avatar Aug 31 '18 06:08 1a57danc3

I'm also interested. Github does not provide an UI for image upload. But you can checkout the gist, add your image, push the changes, and GitHub will render the uploaded image, and it can even be linked in your markdown document.

davidgraeff avatar Oct 02 '18 10:10 davidgraeff

It would be great if i can upload a screenshot of the code that i am creating a snippet for. It will be much easier to find and visualize the code when going back to it or when sharing it with others.

ali-h2010 avatar Feb 20 '22 07:02 ali-h2010