This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

OSM diary: Add image to an entry that’s located on local hard drive

3

Hi

As per the subject line. Is this possible, if so, what's mark up code is required?

Cheers Dave F.

asked 20 Sep '16, 14:03

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

edited 20 Sep '16, 14:04

1

Good question. I find that I have to first copy the image to a source like flickr. It's an extra step.

(20 Sep '16, 18:08) Alan01730

2 Answers:

2

workaround: you can upload the image to our wiki or to this site and link it in the diary. Once you have the image somewhere accessible via http (or, preferably, https), include it in your diary entry: image inclusion syntax.

answered 20 Sep '16, 19:23

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

0

Do you mean you want the image stored on the server that hosts the diary?

There's no support for that.

answered 20 Sep '16, 16:01

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

No. On my local hard drive (c:)

(20 Sep '16, 17:57) DaveF

A file stored on your local hard drive isn't an OSM diary entry.

If you are preparing an entry offline or whatever, inserting an image will be specific to however you are doing that and not have much to do with OSM. You will have to anyway upload the image somewhere and edit the markup to publish the entry.

If you've saved a diary entry that you want to annotate with an image, the question has even less to do with OSM. Assuming you've saved it as plain html, consult an html tuturial for the 'img' element. I'd suggest MDN: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Introduction

(20 Sep '16, 18:17) maxerickson
1

Well it's not a totally silly question :) Both the "help" site (as I only discovered today) and e.g. github support "upload an image as you add an entry".

(20 Sep '16, 20:16) SomeoneElse ♦

Source code available on GitHub .