Code Monkey home page Code Monkey logo

Comments (3)

HarelM avatar HarelM commented on August 26, 2024

When there are several images, a Wikimedia Commons Category can be used: wikimedia_commons=Category:Eiffel Tower

Who will create these categories? What happens to places that don't have a name?

Besides the above, there's a need to open a bulk edit announcement in the OSM forum.

I'm good with this idea as long as we solve the above issues.

from site.

zstadler avatar zstadler commented on August 26, 2024

Who will create these categories?

If we can do that through the API, and if it would simplify the handling of multiple images, we may create the categories ourselves. BTW, there is already a Category:Israel Hiking Map

What happens to places that don't have a name?

I believe there is already a mechanism that sets the image names. That need not change.
For example: File: IHM Cave*

Besides the above, there's a need to open a bulk edit announcement in the OSM forum.

IMHO, this is optional, assuming we will want to continue and use image* tags that were or will be added to OSM by means other than IHM.

from site.

HarelM avatar HarelM commented on August 26, 2024

This is already supported for image*=File:xxx.png as can be seen here:

return `https://commons.wikimedia.org/w/index.php?title=Special:Redirect/file/${imageUrl.replace("File:", "")}&width=${size}`;

We use it for image caching here too:
fullImage = $"https://commons.wikimedia.org/w/index.php?title=Special:Redirect/file/{imageUrl.Replace("File:", "")}";

There is currently no support for wikimedia_commons though...

In theory, we may remove the code that translates the file name to an image url here:

public async Task<string> GetImageUrl(string pageName)

and store the image in the wikimedia_commons tag, but if we plan to support both the "old" image tag and the new wikimedi_commons then this will only complicate the code without a significant improvement, so I'm not sure I understand the motivation behind this issue...

from site.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.