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.
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.
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.
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.
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.
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.
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.
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.