Page MenuHomePhabricator

Make Wikinews and Wiktionary logos in Codex/OOUI smaller
Closed, ResolvedPublic3 Estimated Story Points

Description

Background goal

[2023-01-31 13:50:19 PST] catrope:~/git/codex/packages/codex-icons/src/images (main)$ wc -c logo-*
   828 logo-CC.svg
  4819 logo-MediaWiki.svg
  3258 logo-MetaWiki.svg
  1091 logo-Wikibooks.svg
   423 logo-Wikidata.svg
  2217 logo-Wikifunctions.svg
   851 logo-Wikimedia-Commons.svg
   370 logo-Wikimedia-Discovery.svg
   628 logo-Wikimedia.svg
206738 logo-Wikinews.svg
   762 logo-Wikipedia.svg
   798 logo-Wikiquote.svg
  4614 logo-Wikisource.svg
  1992 logo-Wikispecies.svg
  1581 logo-Wikiversity.svg
   444 logo-Wikivoyage.svg
 20630 logo-Wiktionary.svg

Most icon SVGs are a couple hundred bytes. Some of the logos are bit bigger, a couple of kilobytes, which is fine. But the Wiktionary logo is 20KB, and the Wikinews logo is 204KB. These icons also contain way too much detail to be useful as 20x20px icons.

We should make the Wikinews logo SVG smaller. It makes up 0.37% of all icons by number (1 of 273), but 59.7% by volume (206KB out of 346KB). In other words, adding this one icon made the icons package 2.5x bigger. We should also try to make the Wiktionary logo smaller, but that one isn't quite as absurdly large as the Wikinews icon.

Wikinews.png (48×49 px, 2 KB)
Wikitionary.png (48×48 px, 4 KB)
Current Wikinews logoCurrent Wikitionary logo
Proposal

Simplify the logos and make them 20x20px. Proposals captured in this Figma exploration file.

Wikinews.png (20×20 px, 1 KB)
Wikitionary.png (20×20 px, 1 KB)
WikinewsWikitionary
SVG icons

They will be added here once they are done.

Acceptance criteria (or done)
  • Design a simplified version of the logo in 20x20px
    • Wikinews
    • Wikitionary
  • Replace the logo in code

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Catrope triaged this task as High priority.Jan 31 2023, 9:55 PM
Catrope moved this task from Inbox to Up Next on the Design-System-Team board.
Catrope added a subscriber: Volker_E.

This needs to be fixed and deployed as a matter of urgency. VE is loading this module and so this will be causing a significant performance regression.

If there are no users other than the requesters in the original task, this can just be reverted and downstreamed until a more acceptable upstream solution is agreed upon.

Change 887853 had a related patch set uploaded (by Esanders; author: Esanders):

[oojs/ui@master] Revert "icons: Add Wikimedia logos to 'icons-wikimedia' pack"

https://gerrit.wikimedia.org/r/887853

Volker_E renamed this task from Make Wikinews and Wiktionary logos in Codex smaller to Make Wikinews and Wiktionary logos in Codex/OOUI smaller.Feb 13 2023, 1:17 PM
Volker_E added a project: OOUI.

Change 888694 had a related patch set uploaded (by VolkerE; author: VolkerE):

[oojs/ui@master] icons: Amend 'Wikinews' and 'Wiktionary' logo

https://gerrit.wikimedia.org/r/888694

Wikinews logo would now be 25kb gzipped with the less detailed version.

Change 888701 had a related patch set uploaded (by VolkerE; author: VolkerE):

[oojs/ui@master] icons: Amend 'Wikinews' and 'Wiktionary' logo

https://gerrit.wikimedia.org/r/888701

888701 features abstracted Wikinews logo from https://www.figma.com/file/NxMgGOrKSiNExRgD6qHU74/Wikinews-logo?node-id=40%3A207&t=OZk6STeTp0gWS35V-0 (Option #3)

image.png (376×358 px, 24 KB)

That seems to be acceptable to me for logo representation at 20dp, given that we also use globe abstraction in MetaWiki logo. And it's only 685 bytes gzipped.

Volker_E set the point value for this task to 3.
Volker_E moved this task from Up Next to Design-System-Sprint on the Design-System-Team board.

Change 888701 merged by jenkins-bot:

[oojs/ui@master] icons: Amend 'Wikinews' and 'Wiktionary' logo

https://gerrit.wikimedia.org/r/888701

Change 888694 abandoned by Esanders:

[oojs/ui@master] icons: Amend 'Wikinews' and 'Wiktionary' logo

Reason:

See Ia3bc0242c08a9ec96be7ab0eb032bcc2b20519ae

https://gerrit.wikimedia.org/r/888694

Change 887853 abandoned by Esanders:

[oojs/ui@master] Revert "icons: Add Wikimedia logos to 'icons-wikimedia' pack"

Reason:

See Ia3bc0242c08a9ec96be7ab0eb032bcc2b20519ae

https://gerrit.wikimedia.org/r/887853

Change 889152 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[oojs/ui@master] Minimize MediaWiki logo

https://gerrit.wikimedia.org/r/889152

Change 889156 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[oojs/ui@master] Remove white rectangles from new Wikinews/Wiktionary logos

https://gerrit.wikimedia.org/r/889156

Change 889156 merged by jenkins-bot:

[oojs/ui@master] icons: Remove white rectangles from new Wikinews/Wiktionary logos

https://gerrit.wikimedia.org/r/889156

Change 889152 merged by jenkins-bot:

[oojs/ui@master] icons: Minimize MediaWiki logo

https://gerrit.wikimedia.org/r/889152

Change 889180 had a related patch set uploaded (by VolkerE; author: VolkerE):

[design/codex@main] icons: Amend 'Wikinews' and 'Wiktionary' logo

https://gerrit.wikimedia.org/r/889180

The MediaWiki fix above will need to be copied to Codex too. cc @thiemowmde

Change 889180 merged by jenkins-bot:

[design/codex@main] icons: Amend 'Wikinews' and 'Wiktionary' logo

https://gerrit.wikimedia.org/r/889180

Change 889230 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update Codex from v0.5.0 to v0.6.0

https://gerrit.wikimedia.org/r/889230

Change 889230 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.5.0 to v0.6.0

https://gerrit.wikimedia.org/r/889230

Change 919107 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[design/codex@main] Minimize and fix Wikisource logo

https://gerrit.wikimedia.org/r/919107

Change 919107 merged by jenkins-bot:

[design/codex@main] Minimize and fix Wikisource logo

https://gerrit.wikimedia.org/r/919107

Change 919420 had a related patch set uploaded (by VolkerE; author: VolkerE):

[oojs/ui@master] icons: Minimize and fix Wikisource logo

https://gerrit.wikimedia.org/r/919420

Change 919420 merged by jenkins-bot:

[oojs/ui@master] icons: Minimize and fix Wikisource logo

https://gerrit.wikimedia.org/r/919420

Change 921070 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] Update OOUI to v0.47.0

https://gerrit.wikimedia.org/r/921070

Change 921070 merged by jenkins-bot:

[mediawiki/core@master] Update OOUI to v0.47.0

https://gerrit.wikimedia.org/r/921070

Change 922610 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] Update Codex from v0.10.0 to v0.11.0

https://gerrit.wikimedia.org/r/922610

Change 922610 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.10.0 to v0.11.0

https://gerrit.wikimedia.org/r/922610