Page MenuHomePhabricator

Site logo cropped/not fully displayed on some projects
Open, Needs TriagePublicBUG REPORT

Assigned To
None
Authored By
1234qwer1234qwer4
Sun, Jun 19, 2:56 PM
Referenced Files
F35262709: WikiSpecies_logo.svg
Wed, Jun 22, 7:49 AM
F35253423: logo crop 3.png
Sun, Jun 19, 2:56 PM
F35253422: logo crop 2.png
Sun, Jun 19, 2:56 PM
F35253419: logo crop 1.png
Sun, Jun 19, 2:56 PM

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The logo on Wikispecies is cropped vertically in Monobook; on srwikisource it is cropped on both skins.

What should have happened instead?:
Logo should be displayed correctly

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: Wikispecies logo in Monobook:

logo crop 1.png (810×2 px, 689 KB)

srwikisource logo on Monobook and Vector:
logo crop 2.png (605×2 px, 127 KB)

logo crop 3.png (636×2 px, 136 KB)

Tested on Firefox (version 101) and Edge. Seems to happen for zoom levels greater than 90 % in Firefox for me (16:9 monitor).

Event Timeline

As the one updated the logo of Wikispecies in T306037: the reason is that the width-height ratio of corresponding SVG file failed to match the recommended 135px:155px standard. I made a new version in F35262709, hope someone (maybe @1234qwer1234qwer4 you could do so as a commons admin) to do a reupload, and I could submit a patch to update the static file in mediawiki-config repository.

Thanks. Your file appears to be 135x150; could that still cause issues?

Per Manual:$wgLogos the height should be less than 155px when width is 135px, so I thought it's fine.

Change 807491 had a related patch set uploaded (by Stang; author: Stang):

[operations/mediawiki-config@master] specieswiki: Adjust width-height ratio of logo to fix display issue

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

Change 807491 merged by jenkins-bot:

[operations/mediawiki-config@master] specieswiki: Adjust width-height ratio of logo to fix display issue

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

Mentioned in SAL (#wikimedia-operations) [2022-06-22T13:53:16Z] <lucaswerkmeister-wmde@deploy1002> Synchronized static/images/project-logos/: Config: [[gerrit:807491|specieswiki: Adjust width-height ratio of logo to fix display issue (T310961)]] (1/3) (duration: 03m 46s)

Mentioned in SAL (#wikimedia-operations) [2022-06-22T13:57:24Z] <lucaswerkmeister-wmde@deploy1002> Synchronized logos/config.yaml: Config: [[gerrit:807491|specieswiki: Adjust width-height ratio of logo to fix display issue (T310961)]] (2/3) (duration: 03m 29s)

Mentioned in SAL (#wikimedia-operations) [2022-06-22T14:01:07Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/logos.php: Config: [[gerrit:807491|specieswiki: Adjust width-height ratio of logo to fix display issue (T310961)]] (3/3) (duration: 03m 30s)

Mentioned in SAL (#wikimedia-operations) [2022-06-22T14:01:33Z] <Lucas_WMDE> lucaswerkmeister-wmde@mwmaint1002:~$ printf 'https://en.wikipedia.org/static/images/project-logos/%s\n' specieswiki{,-{1.5,2}x}.png | mwscript purgeList.php # T310961

Logo for specieswiki has been updated. As for srwikisource, maybe someone else would like to give a hand.

FYI: related patch, however don't know which commons file it is.