Summary
- You can add an uploaded image to your biostars post. The image should be accessible to the public via a straightforward URL. Do not use Google Drive/DropBox/any website that requires log-in
- Method 1: Upload the image, get the image direct URL (should end with an image file extension such as
.jpeg
or.png
, and when you open the link in a browser, it should show only the image) and use with the image option on the biostars toolbar - Method 2: Upload the image, get the embed HTML code and use it as part of the post text.
UPDATE
I have removed the cubeupload method, as imgbb universally works for everyone.
UPDATE - 2
The direct URL must end in .png
or .jpg
or a similar image file extension.
If the image direct URL you're using looks like this, you're doing it wrong: https://ibb.co/aBcDeF - see how it doesn't end in a .jpg
or a .png
or a similar image file extension?
(Ridiculously) Detailed description follows
Here are two ways you can add an image to your post - using Markdown syntax, and with inline HTML. Markdown syntax looks better, while Inline HTML gives you more control and is easier. I'll demonstrate both methods here, and you can pick the one most appropriate to you.
- Upload your image
- Add the image to your biostars post using one of the following methods:
- Markdown Method
- Inline HTML Method
A suggestion: Adding a function in the web that can identify whether an url link inserting has a figure basename (like png) during inserting a figure will effectively solve the issue. In most cases failed, people uploaded an HTML link, which needs to be opened to get the real figure link. Thank you.
Thank you for the suggestion. If you could check out the https://github.com/ialbert/biostar-central repository and suggest the code changes to be made to add your validation code in, that'd be great. I also think this might require forking and making changes to the underlying markdown engine.
I'm not familiar with python. It's a shame. However, I filed an issue at github and gave a simple solution that more tips during the poped inserting figure page. Thank you.