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.
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.
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.
We are now rate-limiting non thumbnail steps requests for cache misses when certain X-Is-Browser thresholds are met
Change #1211107 abandoned by Ladsgroup:
[mediawiki/extensions/Popups@master] constants: Force 480px to 500px
Reason:
Done in a different way
T411013: Popups should use standard thumbnail sizes for longer term solution
Great find, thank you!
Change #1211107 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):
[mediawiki/extensions/Popups@master] constants: Force 480px to 500px
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
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
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.
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)
The query was wrong, the like should have an extra % at the end. Let me try again.
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)>
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.
deployed and DONE. followup work -> T410711
QA test passed for MediaViewer's thumbnail bucket sizes config, wgMediaViewerThumbnailBucketSizes.
Change #1208409 had a related patch set uploaded (by Simon04; author: Simon04):
[mediawiki/extensions/MultimediaViewer@master] Make download sizes configurable using wgMediaViewerDownloadSizes
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
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 )
Thanks! I've spent a fair chunk of time searching and have come up with nothing. My next stop is likely #no-stupid-questions...
Related: T410711
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