Notifications
Sign Up Sign In
Q&A

Import image from web link?

+1
−0

I a recent post https://outdoors.codidact.com/questions/74859#answer-74867 I wanted to include a photo from Wikipedia.

I would like an option to load images from the a weblink, preferably that includes the attribution at the same time.

Edit An example that should work but does not seem to be working.

![Battle between pavement ant colonies on sidewalk, May 2019, Mount Vernon, Washington, US](https://en.wikipedia.org/wiki/Pavement_ant#/media/File:Pavement_ants_battling_on_sidewalk.jpg)

Add '!' and no image Battle between pavement ant colonies on sidewalk, May 2019, Mount Vernon, Washington, US

Remove '!' and the link works Battle between pavement ant colonies on sidewalk, May 2019, Mount Vernon, Washington, US

Why should this post be closed?

0 comments

1 answer

+2
−0

It already exists in simple Markdown:

![image alt text](paste your link here)

4 comments

I am not sure it is working correctly. It looks from your example like I just need to add ! in front of the link I had existing in the post. I did that and I see an image icon (tiny) but not the picture. James Jenkins 2 months ago

@JamesJenkins As long as it's a direct link to an image, adding a ! should embed the image in the post - that should work anywhere Markdown is supported. ArtOfCode 2 months ago

@artofcode I edited my question, with an example. Maybe I am not understanding something? James Jenkins about 2 months ago

@JamesJenkins The link you're using there is to an HTML page, not to an image. Usually links that end in .jpg, .png etc are images, but Wikimedia hijacks them and serves HTML; you want https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Pavement_ants_battling_on_sidewalk.jpg/1280px-Pavement_ants_battling_on_sidewalk.jpg ArtOfCode about 2 months ago