Page MenuHomePhabricator

MediaViewerComponent
ActivePublic

Members (3)

Details

Description

Adds JavaScript to pages with thumbnails to show the full
image instead of just linking to the file page (Homepage)

This is maintained by the Structured Data team.

Recent Activity

Yesterday

MatthewVernon created T412971: Propose a new set of standard thumbnail sizes.
Wed, Dec 17, 3:54 PM · MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic

Tue, Dec 16

TheDJ added a parent task for T77151: Full Zoom Feature in Media Viewer: T337537: Wikimedia Commons: download instead of zoom in for TIFF files.
Tue, Dec 16, 10:49 AM · Design, Wikimedia-Design, Multimedia, MediaViewer

Wed, Dec 10

HSwan-WMF moved T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits from Needs Refinement to Backlog on the Reader Growth Team board.
Wed, Dec 10, 5:30 PM · Reader Growth Team, Patch-For-Review, MediaViewer
HSwan-WMF moved T409629: Media Viewer uses excess precision for date from Needs Refinement to Backlog on the Reader Growth Team board.
Wed, Dec 10, 5:29 PM · patch-welcome, Reader Growth Team, MediaViewer

Fri, Dec 5

Jdlrobson-WMF added a project to T372165: Reduce number of bucketsizes for MediaViewer: Readers Essential Work 2025.
Fri, Dec 5, 9:15 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer

Thu, Dec 4

lwatson added a project to T409629: Media Viewer uses excess precision for date: patch-welcome.
Thu, Dec 4, 9:33 PM · patch-welcome, Reader Growth Team, MediaViewer

Wed, Dec 3

HSwan-WMF lowered the priority of T409629: Media Viewer uses excess precision for date from Medium to Low.
Wed, Dec 3, 5:45 PM · patch-welcome, Reader Growth Team, MediaViewer
HSwan-WMF added a comment to T409629: Media Viewer uses excess precision for date.

There are a bunch of MediaViewer things that need maintenance, but with current experiments and future work the path is unclear. We anticipate making future changes in this area next year and will look at this then.

Wed, Dec 3, 5:45 PM · patch-welcome, Reader Growth Team, MediaViewer
HSwan-WMF set the point value for T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits to 2.
Wed, Dec 3, 5:40 PM · Reader Growth Team, Patch-For-Review, MediaViewer
HSwan-WMF lowered the priority of T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits from High to Medium.
Wed, Dec 3, 5:35 PM · Reader Growth Team, Patch-For-Review, MediaViewer
egardner moved T409629: Media Viewer uses excess precision for date from Backlog to Needs Refinement on the Reader Growth Team board.
Wed, Dec 3, 4:48 PM · patch-welcome, Reader Growth Team, MediaViewer
egardner moved T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits from Incoming/Inbox to Needs Refinement on the Reader Growth Team board.
Wed, Dec 3, 4:48 PM · Reader Growth Team, Patch-For-Review, MediaViewer
HSwan-WMF moved T409629: Media Viewer uses excess precision for date from Incoming/Inbox to Backlog on the Reader Growth Team board.
Wed, Dec 3, 4:47 PM · patch-welcome, Reader Growth Team, MediaViewer

Wed, Nov 26

HSwan-WMF raised the priority of T409629: Media Viewer uses excess precision for date from Low to Medium.
Wed, Nov 26, 5:33 PM · patch-welcome, Reader Growth Team, MediaViewer
HSwan-WMF triaged T409629: Media Viewer uses excess precision for date as Low priority.
Wed, Nov 26, 5:32 PM · patch-welcome, Reader Growth Team, MediaViewer
HSwan-WMF triaged T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits as High priority.
Wed, Nov 26, 5:29 PM · Reader Growth Team, Patch-For-Review, MediaViewer
Vgutierrez added a comment to T408062: FY 25/26 WE 5.4.7 Standardize thumbnail sizes.

We are now rate-limiting non thumbnail steps requests for cache misses when certain X-Is-Browser thresholds are met

Wed, Nov 26, 12:26 PM · MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Maintenance_bot removed a project from T410304: Measure request frequency of thumbnail sizes: Patch-For-Review.
Wed, Nov 26, 11:31 AM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
gerritbot added a comment to T410304: Measure request frequency of thumbnail sizes.

Change #1211107 abandoned by Ladsgroup:

[mediawiki/extensions/Popups@master] constants: Force 480px to 500px

Reason:

Done in a different way

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

Wed, Nov 26, 11:02 AM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic

Tue, Nov 25

Jdlrobson-WMF added a project to T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits: Reader Growth Team.
Tue, Nov 25, 5:09 PM · Reader Growth Team, Patch-For-Review, MediaViewer
Jdlrobson-WMF added a project to T409629: Media Viewer uses excess precision for date: Reader Growth Team.
Tue, Nov 25, 5:09 PM · patch-welcome, Reader Growth Team, MediaViewer
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

T411013: Popups should use standard thumbnail sizes for longer term solution

Tue, Nov 25, 4:48 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon added a project to T410304: Measure request frequency of thumbnail sizes: Page-Previews.
Tue, Nov 25, 4:41 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon added a comment to T410304: Measure request frequency of thumbnail sizes.

Great find, thank you!

Tue, Nov 25, 4:29 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
gerritbot added a project to T410304: Measure request frequency of thumbnail sizes: Patch-For-Review.
Tue, Nov 25, 1:17 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
gerritbot added a comment to T410304: Measure request frequency of thumbnail sizes.

Change #1211107 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/extensions/Popups@master] constants: Force 480px to 500px

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

Tue, Nov 25, 1:17 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

I was kinda sure it was Popups and lo and behold, it's Popups: https://gerrit.wikimedia.org/g/mediawiki/extensions/Popups/+/8754132e08cedfc0ac70b2bb1dded01e55472e93/src/gateway/rest.js#119

Tue, Nov 25, 12:40 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

Okay, I checked several more cases and they all seems to be coming from rest endpoint for page summary. For example, there is another one that hits https://en.wikipedia.org/api/rest_v1/page/summary/World_War_II and immediately https://uploads.wikimedia.org/wikipedia/commons/thumb/1/10/Bundesarchiv_Bild_101I-646-5188-17%2C_Flugzeuge_Junkers_Ju_87.jpg/480px-Bundesarchiv_Bild_101I-646-5188-17%2C_Flugzeuge_Junkers_Ju_87.jpg which is the same image provided in the thumbnail attribute of the page summary endpoint but when I open the link the thumbnail is a different size o.O

Tue, Nov 25, 12:13 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

I picked a random path that was hit and looked the IP and basically looked at the previous and after requests at the same time but the same IP. I picked a IPv6 to reduce the chance of overlap.

Tue, Nov 25, 11:51 AM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic

Mon, Nov 24

Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.
spark-sql (default)> select uri_path, count(*) as hits from wmf.webrequest where webrequest_source='upload' and year=2025 and month=10 and day=24 and hour=10 and http_status='200' and uri_path like '/wikipedia/%/thumb/%' and regexp_extract(uri_path, '([0-9]+)px[^/]+$')='480' AND referer like '%.wikipedia.org%' group by uri_path order by hits desc LIMIT 10;
uri_path	hits
/wikipedia/commons/thumb/e/e4/Status_iucn3.1_LC_ru.svg/480px-Status_iucn3.1_LC_ru.svg.png	2106
/wikipedia/commons/thumb/9/96/Flag_of_the_United_States_%28DDD-F-416E_specifications%29.svg/480px-Flag_of_the_United_States_%28DDD-F-416E_specifications%29.svg.png	1939
/wikipedia/commons/thumb/a/a5/Flag_of_the_United_Kingdom_%281-2%29.svg/480px-Flag_of_the_United_Kingdom_%281-2%29.svg.png	1532
/wikipedia/commons/thumb/f/f3/Flag_of_Russia.svg/480px-Flag_of_Russia.svg.png	1482
/wikipedia/commons/thumb/c/c3/Flag_of_France.svg/480px-Flag_of_France.svg.png	1400
/wikipedia/commons/thumb/e/e2/Flag_of_the_United_States_%28Pantone%29.svg/480px-Flag_of_the_United_States_%28Pantone%29.svg.png	1297
/wikipedia/commons/thumb/f/fa/Flag_of_the_People%27s_Republic_of_China.svg/480px-Flag_of_the_People%27s_Republic_of_China.svg.png	1285
/wikipedia/commons/thumb/b/ba/Flag_of_Germany.svg/480px-Flag_of_Germany.svg.png	1272
/wikipedia/commons/thumb/e/e2/White_House_ballroom_plan%2C_October_2025.svg/480px-White_House_ballroom_plan%2C_October_2025.svg.png	1254
/wikipedia/commons/thumb/a/a9/Flag_of_the_Soviet_Union.svg/480px-Flag_of_the_Soviet_Union.svg.png	1218
Time taken: 36.124 seconds, Fetched 10 row(s)
Mon, Nov 24, 10:55 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

The query was wrong, the like should have an extra % at the end. Let me try again.

Mon, Nov 24, 10:53 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.
spark-sql (default)> select uri_path, count(*) as hits from wmf.webrequest where webrequest_source='upload' and year=2025 and month=10 and day=24 and hour=10 and http_status='200' and uri_path like '/wikipedia/%/thumb/%' and regexp_extract(uri_path, '([0-9]+)px[^/]+$')='480' AND referer like '%.wikipedia.org' group by uri_path order by hits desc LIMIT 10;
uri_path	hits
/wikipedia/commons/thumb/7/7e/Map_of_Fukuoka_Prefecture_Ja.svg/480px-Map_of_Fukuoka_Prefecture_Ja.svg.png	1
/wikipedia/commons/thumb/a/a5/Infobox_info_icon2.svg/480px-Infobox_info_icon2.svg.png	1
/wikipedia/commons/thumb/d/d5/Lynx-wikipedia.png/480px-Lynx-wikipedia.png	1
/wikipedia/commons/thumb/8/81/Haiku_R1_Beta_3_desktop_screenshot.png/480px-Haiku_R1_Beta_3_desktop_screenshot.png	1
/wikipedia/commons/thumb/7/75/Small_Pencil_Icon.svg/480px-Small_Pencil_Icon.svg.png	1
/wikipedia/commons/thumb/5/5d/Dooble_Showing_Dutch_Wikipedia.png/480px-Dooble_Showing_Dutch_Wikipedia.png	1
/wikipedia/commons/thumb/e/eb/Emoji_u1f33f.svg/480px-Emoji_u1f33f.svg.png	1
/wikipedia/commons/thumb/f/fc/MEPIS_logo.svg/480px-MEPIS_logo.svg.png	1
/wikipedia/commons/thumb/6/62/W3m-wikipedia.png/480px-W3m-wikipedia.png	1
/wikipedia/commons/thumb/1/10/TDA1%2C_ptc_catalyst.svg/480px-TDA1%2C_ptc_catalyst.svg.png	1
Time taken: 56.367 seconds, Fetched 10 row(s)
spark-sql (default)>
Mon, Nov 24, 10:32 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
akosiaris added a comment to T410304: Measure request frequency of thumbnail sizes.

Turnilo for the Telegram Logo (first hit in what @Ladsgroup ) says: Google Proxy as the ISP, in an staggering 85% of the cases. However, it sends those requests with no referrer.

Mon, Nov 24, 5:53 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
bvibber closed T372165: Reduce number of bucketsizes for MediaViewer, a subtask of T408062: FY 25/26 WE 5.4.7 Standardize thumbnail sizes, as Resolved.
Mon, Nov 24, 5:03 PM · MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
bvibber closed T372165: Reduce number of bucketsizes for MediaViewer as Resolved.

deployed and DONE. followup work -> T410711

Mon, Nov 24, 5:03 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer
lwatson moved T372165: Reduce number of bucketsizes for MediaViewer from QA to Signoff on the Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)) board.

QA test passed for MediaViewer's thumbnail bucket sizes config, wgMediaViewerThumbnailBucketSizes.

  • Test on different viewport sizes.
  • Verify thumbnail bucket sizes: 500px, 960px, 1280px, 2560px.
Mon, Nov 24, 4:34 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer

Fri, Nov 21

egardner moved T410556: Spike: Media Viewer bucket sizes smallest bucket is not the expected size if not in wgThumbnailSteps from Incoming/Inbox to Backlog on the Reader Growth Team board.
Fri, Nov 21, 8:20 PM · MediaViewer, Readers Essential Work 2025 (Merge mobile and desktop media viewers), Reader Growth Team
egardner added a project to T410556: Spike: Media Viewer bucket sizes smallest bucket is not the expected size if not in wgThumbnailSteps: MediaViewer.
Fri, Nov 21, 8:19 PM · MediaViewer, Readers Essential Work 2025 (Merge mobile and desktop media viewers), Reader Growth Team
gerritbot added a project to T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits: Patch-For-Review.
Fri, Nov 21, 5:08 PM · Reader Growth Team, Patch-For-Review, MediaViewer
gerritbot added a comment to T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits.

Change #1208409 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/MultimediaViewer@master] Make download sizes configurable using wgMediaViewerDownloadSizes

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

Fri, Nov 21, 5:08 PM · Reader Growth Team, Patch-For-Review, MediaViewer
Ladsgroup added a comment to T410304: Measure request frequency of thumbnail sizes.

I haven't found anything in gadgets, etc. https://commons.wikimedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns8=1&search=%22480px-%22 (same in enwiki, etc.) I found a lot of weird stuff in meta but still all unrelated: https://meta.wikimedia.org/w/index.php?search=%22%2F480px-%22&title=Special%3ASearch&profile=advanced&fulltext=1&ns8=1

Fri, Nov 21, 2:36 PM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon updated the task description for T408715: Compile a list of "canonical" thumbnail sizes.
Fri, Nov 21, 2:09 PM · MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon updated the task description for T408715: Compile a list of "canonical" thumbnail sizes.
Fri, Nov 21, 1:56 PM · MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon added a comment to T410304: Measure request frequency of thumbnail sizes.

I have solved the easy one, though: ecosia. If you image search on there (e.g. https://www.ecosia.org/images?q=cattle and find the wikipedia hit (about fourth row down), it's hard-coding the link to https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Cow_(Fleckvieh_breed)_Oeschinensee_Slaunger_2009-07-07.jpg/480px-Cow_(Fleckvieh_breed)_Oeschinensee_Slaunger_2009-07-07.jpg (though that does bring about the question of where/how it's getting that from )

Fri, Nov 21, 10:30 AM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
MatthewVernon added a comment to T410304: Measure request frequency of thumbnail sizes.

Thanks! I've spent a fair chunk of time searching and have come up with nothing. My next stop is likely #no-stupid-questions...

Fri, Nov 21, 10:27 AM · Page-Previews, MediaViewer, Data-Persistence, Thumbor, SRE-swift-storage, Traffic
TheDJ added a comment to T372165: Reduce number of bucketsizes for MediaViewer.

Related: T410711

Fri, Nov 21, 9:06 AM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer
TheDJ created T410711: MediaViewer download sizes should be configurable and align small sizes with wgThumbLimits.
Fri, Nov 21, 9:05 AM · Reader Growth Team, Patch-For-Review, MediaViewer

Thu, Nov 20

Maintenance_bot removed a project from T372165: Reduce number of bucketsizes for MediaViewer: Patch-For-Review.
Thu, Nov 20, 10:30 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer
bvibber added a comment to T372165: Reduce number of bucketsizes for MediaViewer.

Ok the reconciliation with wgThumbnailSteps is complete: getting 500px is now officially Fine And Good as the smallest size on the QA test link :D

Thu, Nov 20, 10:04 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer
bvibber updated the task description for T372165: Reduce number of bucketsizes for MediaViewer.
Thu, Nov 20, 10:03 PM · Readers Essential Work 2025, Reader Growth Team (Sprint 4 (Nov 12 - Nov 25) Q2 25/26)), MW-1.45-notes (1.45.0-wmf.24; 2025-10-21), MediaViewer