Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support image file readering #291

Open
glody opened this issue May 11, 2018 · 7 comments
Open

Support image file readering #291

glody opened this issue May 11, 2018 · 7 comments

Comments

@glody
Copy link

glody commented May 11, 2018

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 cosmo.lepton@gmail.com if don't want to post it here.

@hackjutsu
Copy link
Owner

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.

@thiagosouza
Copy link

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!

@hackjutsu
Copy link
Owner

hackjutsu commented Jul 29, 2018

@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 hackjutsu reopened this Jul 29, 2018
@hackjutsu
Copy link
Owner

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

@1a57danc3
Copy link

1a57danc3 commented Aug 31, 2018

@hackjutsu Use imgur api?

Insert markdown to editor

@davidgraeff
Copy link

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.

@ali-h2010
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants