Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
User avatar
hcet14
Posts: 14
Joined: Sat Dec 19, 2020 12:59 am

Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by hcet14 » Tue Jan 05, 2021 10:42 pm

I searched in the forum for a solution, but wasn't able to find one.

Your FAQ claims this:
Can I post images?
Yes, images can be shown in your posts. If the administrator has allowed attachments, you may be able to upload the image to the board. Otherwise, you must link to an image stored on a publicly accessible web server, e.g. http://www.example.com/my-picture.gif. You cannot link to pictures stored on your own PC (unless it is a publicly accessible server) nor images stored behind authentication mechanisms, e.g. hotmail or yahoo mailboxes, password protected sites, etc. To display the image use the BBCode "img" tag.

When I use the function "Insert image: [img]http://image_url[/img]" and put my URL inside it shows me this:
That's my setup Image (the word Image is written a little lower) and there is no link behind the word Image and/or no picture is shown.

I tried to use the function for the first time here viewtopic.php?f=16&t=2204&p=53418#p53418

I used this URL https://ibb.co/tM7n6bZ to upload the image I would like to attach.

Is the "https" the problem?

or is it " If the administrator has allowed attachments, you may be able to upload the image to the board"?

How can I find out if the administrator has allowed me to attach?

Probably a legally matter?

Is there a legally difference, if the picture is shown on the board or just its URL?
I'm a beginner with this stuff and no programmer at all.

scruss
Posts: 30
Joined: Sat Aug 12, 2017 2:27 pm

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by scruss » Tue Jan 05, 2021 11:20 pm

I just copied the BBCode link from your page, and:

Image

Attachment images often have a size limit, and need to be uploaded, not linked.

User avatar
pythoncoder
Posts: 4807
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by pythoncoder » Wed Jan 06, 2021 10:22 am

scruss wrote:
Tue Jan 05, 2021 11:20 pm
...
Attachment images often have a size limit, and need to be uploaded, not linked.
I have found that links to http work, links to https do not.
Peter Hinch

User avatar
hcet14
Posts: 14
Joined: Sat Dec 19, 2020 12:59 am

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by hcet14 » Wed Jan 06, 2021 11:38 am

Thank you guys.

That's what I thought above

"Is the "https" the problem?"
I'm a beginner with this stuff and no programmer at all.

User avatar
pythoncoder
Posts: 4807
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by pythoncoder » Thu Jan 07, 2021 3:06 pm

In my experience yes.
Peter Hinch

scruss
Posts: 30
Joined: Sat Aug 12, 2017 2:27 pm

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by scruss » Mon Jan 11, 2021 11:05 pm

my link was https: url=https://ibb… and seems to work

User avatar
pythoncoder
Posts: 4807
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by pythoncoder » Tue Jan 12, 2021 5:50 am

Maybe I misdiagnosed this fault. I cannot link images on GitHub (https). Linking from my own http webspace works. Here is an image from GitHub:
Image
Nope. Nothing doing.

Here is one from my webspace:
Image

Maybe the problem is nothing to do with https. Both URL's work in Firefox...
Peter Hinch

User avatar
dhylands
Posts: 3516
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by dhylands » Tue Jan 12, 2021 5:34 pm

To link from github, you need to link to the raw image (i.e. right click on the Download button and copy that link)
Image

Linking from https Image seems to work

User avatar
dhylands
Posts: 3516
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by dhylands » Tue Jan 12, 2021 5:46 pm

Peter, Your http link didn't show up for me in Chrome, but it did show up in firefox and safari.

The https links show up in all 3 browsers.

User avatar
pythoncoder
Posts: 4807
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Function for writing posts, "Insert image:" I hope it wasn't asked 10 times before

Post by pythoncoder » Tue Jan 12, 2021 6:00 pm

Ah, thanks for the tip about GitHub.

I think I read something about Chrome terminally disapproving of http? Does it see http://hinch.me.uk? Firefox shows an "insecure" indicator but otherwise displays the page.

I only use the webspace for sharing odds and ends, but I guess the days of http are coming to an end.
Peter Hinch

Post Reply