[03:03:24] hello! [03:04:49] anyone here know how I can get a list of a thumbnail's other resolutions through the API? [03:05:06] for example: https://commons.wikimedia.org/wiki/File:Ocicat-woodpecker.jpg [03:05:27] there's a section for other resolutions; is there a way I can get that section through the API? [03:05:31] Casull: We create thumbnails in any resolution on demand [03:05:44] (well, there is an upper limit, 2048px or so AFAIR) [03:05:51] but despite of that, any resolution you want [03:06:05] https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Ocicat-woodpecker.jpg/123px-Ocicat-woodpecker.jpg [03:06:09] Here, one with 123 px [03:06:28] hoo: that's true, but I don't wanna be the guy who stresses the server by requesting a 1080px-wide picture for my stuff when I could grab what's already been generated (and presumably already cached in wikimedia's servers) [03:07:07] That's a very fair point [03:07:16] but we don't have any public api for that [03:07:36] I ask because I wrote a webapp that hotlinks a random cat picture and overlays a cat fact on top, and I don't wanna hotlink a full picture, especially for the larger pictures [03:07:38] For that, it's probably best to use the resolutions commonly found within Wiki pages [03:07:40] ack, dang [03:08:05] (hotlinking pictures because it's easier to grab a fresh random picture from the list of cat breeds) [03:08:15] (and also so I can properly grab credit metadata) [03:08:24] (it's important to follow creative commons!) [03:09:22] okay, dumb next question: with the API, can I grab, like, the most common resolution used for a particular picture rather than the full size? [03:10:25] Casull: Nope [03:10:57] I'd suggest to go for a width of 220px as that's what we use in most places, thus you'll pretty likely get a cache hit [03:11:20] if you need various sizes, you should consider thumbnailing on your end [03:12:04] good point [03:12:24] I'll look into locally caching the image on my end and generating a thumbnail based on that instead [03:12:53] "thumbnail", I say, while thinking about a 1080px-wide version [03:12:59] thanks! [03:14:29] although mmm, either way, the user has to wait for the background image to load after the text has already loaded [03:14:52] but I probably could fix that with javascript or something so that the picture and text load simultaneously [03:15:12] preloading images using JS magic isn't quite easy ;) [03:15:21] anyway, I need to go [03:15:23] ahh poop [03:15:31] ah crap [03:15:31] thanks for your input! [03:15:31] it is [03:15:43] ah poop, excellent, I'll look into it [03:16:03] It's past 4am here... I'm not getting everything right, I guess :P [13:09:26] Hi [13:09:32] I'd like to report a glitch [13:09:40] https://en.wikipedia.org/wiki/File:BewareOfPitBulls.jpg [13:10:06] I had to purge this 4 times! and do a null edit to get it to properly show it's categorisations and template usages [13:10:24] This is playing havoc with some queries I was running at Quarry to try and find mistagged items... [13:10:35] and it's taking longer because of 'glitches' [13:10:39] Any thougts? [13:22:35] Anyone? [13:31:24] ShakespeareFan00: yes. [13:31:35] r054l13: So how to fic the glitch? [13:32:02] Images /category/ template links don't seem to be updating in some circumstances... [13:32:36] So something isn't doing the required purges , updates at the right time [13:33:08] This is making it more tricky to use something like this - https://quarry.wmflabs.org/query/6046 to find "genuinely" iffy stuff [13:34:25] maybe the job queue is broken [13:35:33] https://phabricator.wikimedia.org/ [13:53:46] ShakespeareFan00: sorry, i thought you where asking if anyone is here [13:53:58] closedmouth : Hmm [14:14:00] https://quarry.wmflabs.org/query/6052 this query is borken [14:14:25] Because I've checked carefulyl ahwt i want to exclude and image that SHOULD not be are still showing up on it [14:14:42] Perhaps some here would care to redesign it so it works around the glitches? [14:14:58] ShakespeareFan00: which ones, for example? [14:15:11] DYKEfile and Featured content shouldn't appear [14:15:25] because I've told the query NOT to include them [14:15:52] I've tried excluding templates AND categories [14:15:58] but they still appear [14:16:15] which is frustrating to say the least [14:16:39] eh, where did you tell *not* to include anything? [14:16:59] WHERE t.tl_from IS NULL [14:17:00] AND c2.cl_from IS NULL [14:17:17] As I said, if you can redesign the query so it works, feel free [14:17:47] i'm thinking [14:17:59] which ones of the images should be excluded, then, for example? [14:18:39] Jean_Augustin_Daiwaille_-_Zelfportret.jpg is an image that should not be in the list as it's tagged DYKfile ( and happens to be on Commons in any event) [14:19:07] MovableBridge_roll.gif is a DYKfile [14:22:57] ShakespeareFan00: according to https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&prop=templates&format=json&titles=File%3AJean%20Augustin%20Daiwaille%20-%20Zelfportret.jpg , MediaWiki doesn't think that this page includes any templates. [14:23:10] ShakespeareFan00: this might be caused by the same bug that caused pages not to appear in categories. [14:23:17] Yeah [14:23:24] it'll probably fix itself in this case when you purge the page [14:23:26] So what's the bug annd when will it be fix? [14:23:32] MatmaRex: I tried that [14:23:42] It seems ONLY null edits work "occassionaly" [14:23:54] This really needs fixing deeper inside the core [14:24:03] ShakespeareFan00: yeah, i null edited now and it's fixed [14:24:29] So something is not updating on swmi-automated edits that DOES update on manual null-edits [14:24:31] Hmmm [14:24:39] no [14:24:47] just updating the links tables was broken recently for a while [14:24:51] i thought it's fixed now [14:25:03] Well it doesn't seem to be [14:25:04] can you *not* purge/null-edit the second page? i'll file a bug [14:25:16] I will be purging/Null edit [14:25:34] But it's a "frustrating annoyance" that shouldn't be there XD [14:25:50] no, don't purge it [14:25:53] i want to file a bug [14:26:00] it's hard to prove a bug exists when there are no examples [14:26:48] OK I'll leave of the two I mentioned for a while [14:26:58] But I will keep on updating other files... [14:27:13] which as these are manul should "reduce" the number of exampel at any rate [14:30:36] ShakespeareFan00: this is probably the same issue as https://phabricator.wikimedia.org/T117679 , i'll rephrase [14:30:43] OK thanks [14:30:57] (this is all about "link tables", pagelinks/templatelinks/categorylinks, which are all updated in the same way) [14:34:10] [[Tech]]; Anomie; /* API to get links of a page not working (only for some titles!) */ re; https://meta.wikimedia.org/w/index.php?diff=14546409&oldid=14532553&rcid=6986094 [15:17:47] [[Tech]]; 31.157.27.89; /* The meaning of the surname: Casoni */ new section; https://meta.wikimedia.org/w/index.php?diff=14547101&oldid=14546409&rcid=6986287 [15:19:44] [[Tech]]; Syum90; Undo revision 14547101 by [[Special:Contributions/31.157.27.89|31.157.27.89]] ([[User talk:31.157.27.89|talk]]) Off-topic.; https://meta.wikimedia.org/w/index.php?diff=14547135&oldid=14547101&rcid=6986289 [18:02:29] hi [18:02:39] https://commons.wikimedia.org/wiki/File:Welzow-Pano1-2015.jpeg [18:02:47] Error creating thumbnail: /srv/mediawiki/php-1.27.0-wmf.5/includes/limit.sh: line 101: 21665 Killed /usr/bin/timeout $MW_WALL_CLOCK_LIMIT /bin/bash -c "$1" 3>&- [18:03:26] should I open a bug report? [18:04:39] yes, always [18:04:50] it seems similar to https://phabricator.wikimedia.org/T100435 but all the images in that one render for me now [18:14:57] Mtamarex: found another glitched linktable image - https://en.wikipedia.org/wiki/File:Agraharam.jpg [18:14:59] :) [18:31:46] matanya, ok added there [18:50:55] [[Tech]]; 152.119.112.77; /* UTQG Load Multipliers */ new section; https://meta.wikimedia.org/w/index.php?diff=14551410&oldid=14547135&rcid=6987578 [19:12:29] [[Tech]]; Reedy; Undo revision 14551410 by [[Special:Contributions/152.119.112.77|152.119.112.77]] ([[User talk:152.119.112.77|talk]]); https://meta.wikimedia.org/w/index.php?diff=14551790&oldid=14551410&rcid=6987682 [21:17:26] MatmaRex: A question - http://quarry.wmflabs.org/query/6052 [21:17:41] How do I srop something if it's a redirect [21:17:42] ? [21:17:44] *drop [21:18:21] ShakespeareFan00: page.page_is_redirect ? [21:18:42] probably [21:20:07] It parses but I am getting no results [21:20:11] When i should be [21:21:06] OK fixed it - And broke the back of the query :) [22:47:31] MatmaRex : next problem take away all the Commons pass throughs :)