Skip to content

Add properties for icons in different media contexts #288

@1ec5

Description

@1ec5

Each preset is associated with at most one icon. The schema should allow each preset to be associated with additional icons for different media contexts, such as a small icon size or light versus dark mode. This would primarily be useful for presets generated by name-suggestion-index.

For example, for the Cincinnati Metro bus service, NSI uses a Facebook profile picture that’s reasonably legible at the normal size in iD and Rapid’s preset picker. However, as of openstreetmap/iD#11052, the same icon is also scaled down for display in the relation membership editor. At this size, it’s no longer recognizable at a glance. The profile picture applies generous padding around the actual logo because they know it’ll be shown at a certain size that’s actually bigger than we ever use. They’d never use the same picture at an even smaller size.

A normal-sized copy of the icon for Metro (Cincinnati), with the asterisk surrounded by a dark background and a wordmark. A scaled-down copy of the icon for bus number 43 Reading Road, with the asterisk nearly illegible.

Wikidata has both the full-size logo and a smaller, simpler version that NSI knows about (osmlab/name-suggestion-index#4936) but is unable to include in the generated preset. Even if NSI continues to prefer Facebook logos for aesthetic reasons, NSI would probably want to include the small icon too so that clients can display it in space-constrained places, such as iD’s relation membership editor. This would be especially impactful for the public transportation operators in NSI’s transit/ tree. Wikimedia Commons has made a concerted effort to collect and compose small icons for transit operators worldwide for use in Wikipedia’s navigation boxes, infoboxes, and route diagrams.

A normal-sized asterisk. A smaller asterisk, still legible.

NSI would need to provide both images simultaneously. In many cases, the small icon is heavily simplified to remain legible or avoid copyright restrictions, so it would look really weird when scaled up.

The NICTD South Shore Line logo, an old-timey wordmark, backed by a black-and-white photo of a locomotive. A simplification of the South Shore Line logo replaces the text with some lines suggesting the text paths.

Additionally, osmlab/name-suggestion-index#12062 points out that a growing number of Wikidata items distinguish between light and dark mode icons. This would be valuable to editors that implement dark mode. Many logos are simply illegible in dark mode, because Wikimedia Commons prefers transparent backgrounds but has historically been optimized for light mode. (This isn’t as much of a problem for logos coming from Facebook, which are fully opaque, though light-dark switching would be nice.)

This feature request is similar to #135, but the intent is to enable the client to replace the main icon when appropriate, not to badge the main icon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions