Open dieterdreist opened 4 years ago
I feel like this should be a separate app, like this one: https://apps.apple.com/us/app/wiki-uploader/id1271265731
Also not everyone will want to upload to wikimedia, some want to upload to Mapillary or openstreetcam or other photo repositories, and supporting all of them is too complex.
sent from a phone
On 28. Jul 2020, at 23:37, bryceco notifications@github.com wrote:
I feel like this should be a separate app, like this one: https://apps.apple.com/us/app/wiki-uploader/id1271265731
I have this app installed but it doesn’t provide the upload url and it doesn’t set the OpenStreetMap tags, obviously, so it is almost as slow as using the webclient/wizard from wmf. A nice implementation could also set categories automatically from OpenStreetMap tags, but I acknowledge that it would be serious effort to implement it perfectly, and naturally I respect that your focus is on other places.
Also not everyone will want to upload to wikimedia, some want to upload to Mapillary or openstreetcam or other photo repositories, and supporting all of them is too complex.
mapillary and osc are different beasts (dashcam photos, mass not class etc.) but you’re right that there are many picture portals out there and some people prefer flickr, or others
I mentioned Mapillary because it was previously requested in #168.
Lots of image hosts here: https://taginfo.openstreetmap.org/keys/image#values
I have found a way to get the title which can then be formatted as a File: link from the app you mentioned above. worksforme
We support pasting a URL into wikipedia/wikidata tags and automatically translating the value to the appropriate format. If there’s a similar transform that would be useful for wikimedia_commons let me know.
It seems (tested it but did not look up documentation) that you can use the filename directly, e.g. from
https://upload.wikimedia.org/wikipedia/commons/d/d5/Roma-fontana_del_nettuno.jpg
you can take the last part and use it like this:
https://commons.wikimedia.org/wiki/File:Roma-fontana_del_nettuno.jpg
or also like this:
https://commons.wikimedia.org/wiki/File:Roma-fontana del nettuno.jpg
https://commons.wikimedia.org/wiki/File:Roma-fontana%20del%20nettuno.jpg
i.e. the tag should be image = File:Roma-fontana del nettuno.jpg
Just found out it may be more complicated, I checked this:
https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Sept&Box-Poissons_hamecon.jpg/640px-Sept&Box-Poissons_hamecon.jpg
and the URL would be this:
https://commons.wikimedia.org/wiki/File:Sept&Box-Poissons_hamecon.jpg
This is a feature request. It would be great to integrate shooting pictures, uploading them to wikimedia commons and linking them automatically from osm with the "image" tag. (alternatively, there is also a "wikimedia_commons" tag, which is used less).
Right now, this is a very tedious process, which takes at least 5 minutes per photo on mobile, as you pan, scroll and zoom through the various input forms of the upload module, and finally copy the file url back to osm. Integrating with the OSM Editor app could facilitate things a lot, and encourage people to add far more images as they do now. Being on mobile, all the required tools are already in our hands and are only waiting to be enabled.
I hope I got the following details right, from the wikimedia side the expected information and requirements are:
you have an account there
you provide 2.1 the picture, 2.2 a license, 2.3 a file name, 2.4 a description, 2.5 a date, 2.6 a source (like "own work") 2.7 an author (typically your wikimedia account) 2.8 a commons category (according to the batch upload guide, a tracking category and a source category)
optionally you could provide more information and meta data: a topic category, wikidata tags, location data, etc.
Some guidance might be found here: https://commons.wikimedia.org/w/api.php?action=help&modules=upload https://www.mediawiki.org/wiki/API:Upload#Example_1:_Upload_a_local_file_directly https://commons.wikimedia.org/w/api.php https://commons.wikimedia.org/wiki/Commons:Guide_to_batch_uploading
The link in OSM should be under "image" (or maybe "wikimedia_commons") and have its value in the "File:Article name.jpg" style.