Commons:Village pump/Technical

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Shortcuts: COM:VP/T • COM:VPT

Welcome to the Village pump technical section
Technical discussion
Village pump/Technical
 Bug reports
 Code review
Tools
 Tools/Directory
 Idea Lab



This page is used for technical questions relating to the tools, gadgets, or other technical issues about Commons; it is distinguished from the main Village pump, which handles community-wide discussion of all kinds. The page may also be used to advertise significant discussions taking place elsewhere, such as on the talk page of a Commons policy. Recent sections with no replies for 30 days and sections tagged with {{Section resolved|1=--~~~~}} may be archived; for old discussions, see the archives; recent archives: /Archive/2024/12 /Archive/2025/01.

Please note
 
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days.

If parser function for media filetype

[edit]

Is there a parser function for checking if the file is of a specific media-type like image or video?

Could not find find a Commons version for Help:Conditional expressions and thus did not find a way for mediatype conditions.

Some templates seem to need this. Prototyperspective (talk) 14:59, 26 November 2024 (UTC)[reply]

@Prototyperspective: This is not a good solution, but I found {{File type en}} that does it by an ugly means. --bjh21 (talk) 14:25, 2 December 2024 (UTC)[reply]
Thank you! This solves it. I think there were also some templates that display image despite that the file is an audio but I can't find them anymore and think some of these change once structured data is added to the file which can take some time (but not all of them). So this may also be useful it various places. Prototyperspective (talk) 15:04, 2 December 2024 (UTC)[reply]
You can get the mime type via Lua reference manual - File metadata. But it doesn't seem that MediaWiki's internal concept of mediatype (image/video/application etc, that the search etc depend for categorising these) is exposed through that endpoint. Then again, this is a very internal definition and concept. —TheDJ (talkcontribs) 14:31, 5 December 2024 (UTC)[reply]

Bugged SVG

[edit]

Category:Blue ISO 639 icons with double parentheses looks like this:

Is this a a known issue? Bad old PNG does NOT suffer from this bug. Taylor 49 (talk) 16:34, 3 December 2024 (UTC)[reply]

Looking at File:ISO 639 Icon gwi.svg shows the line
<text x="300" y="141" font-size="150" fill="navy" font-family="Helvetica,Arial,sans-serif" font-weight="bold" transform="scale(0.67 1)" text-anchor="middle">gwi</text>
IIRC, the current renderer has a problem when the scale is not uniform: scale(0.67 1).
Glrx (talk) 20:02, 3 December 2024 (UTC)[reply]
OK ... I can't find it on Phabricator. Should one create a BUG report there? Taylor 49 (talk) 23:19, 3 December 2024 (UTC)[reply]
These images should be fixed rather than the software. Sjoerd de Bruin (talk) 23:23, 3 December 2024 (UTC)[reply]
My SVG spec (admittedly not very good) says:
scale(<sx> [<sy>]), which specifies a scale operation by sx and sy. If <sy> is not provided, it is assumed to be equal to <sx>
Given that, the images are valid. Anyone has an authoritative SVG spec saying that different scaling factors for X and Y are invalid? Taylor 49 (talk) 23:31, 3 December 2024 (UTC)[reply]
The files are legitimate, so they should not need to be fixed. Fixing them is also problematic because the support for font-stretch="condensed" (the practical effect of the nonuniform scaling) is poor. Also, Commons does not support textLength.
There was an involved discussion about this problem a long time ago, but I could not find it. I also did not find something on Phabricator, so a Phabricator issue should be started. Someone can check whether this bug is already fixed in later versions of librsvg.
Glrx (talk) 23:42, 3 December 2024 (UTC)[reply]
Previously reported at https://en.wikipedia.org/wiki/Wikipedia:SVG_help/Archive_10#Text_misaligned_(not_previous_bug) cmɢʟee ⋅τaʟκ 13:13, 4 December 2024 (UTC)[reply]

Attribution Name metadata not rendering correctly

[edit]
aufBuchen banner with the forest behind somewhat visible

When I upload and download a JPG file with the XMP.Attribution Name set to First Last <first.last@provider.tld>, Wikimedia Commons, for some reason, omits the space char between Last and < in the "When re-using this work, please credit" field in the Metadata section. This is the only name/email address combination that renders incorrectly in this section. So a bit odd really.

The given thumbnail provides an example. A small but not insignificant bug. I also searched the Village Pump archives but could not find any reference to this particular problem. Best, RobbieIanMorrison (talk) 21:22, 4 December 2024 (UTC)[reply]

I can confirm that this very minor bug exists. In the file in the field "author" there is ordinary space $20 followed by ordinary less-than-sign $3C. However in the field "please credit" there is ordinary space $20 folowed by a HTML-encoded less-than-sign. Taylor 49 (talk) 21:58, 4 December 2024 (UTC)[reply]
As it happens, my Thunderbird mail client adds back the missing space char when the current value is copy/pasted in. RobbieIanMorrison (talk) 09:15, 5 December 2024 (UTC)[reply]
it's probably because it can be html, and it does some sort of normalisation on it. These parts of the MediaWiki code tend to be rather obscure. —TheDJ (talkcontribs) 14:13, 5 December 2024 (UTC)[reply]
Speaking as a programmer, it is usually worth fixing bugs. An artifact that is brushed aside as trivial may well indicate a more significant problem. And I would also argue that image metadata should be faithfully replicated in all cases. RobbieIanMorrison (talk) 07:33, 7 December 2024 (UTC)[reply]

SVG upload error

[edit]

Hi all

I'm trying to help UN FAO upload some maps to Commons but I'm getting an error I've never seen before, the error happens when I try to upload the SVG files, does anyone know what the issue is and can someone suggest steps to fix them? I'm not very technical so a vague answer isn't really going to help a lot :)

The error message is maybe 20 pages long so I'll just copy the start of it in below.

  Found href to unsafe data: URI target <image http://www.w3.org/1999/xlink:href=@data:;base64,

Thanks so much

. John Cummings (talk) 15:56, 5 December 2024 (UTC)[reply]

@John Cummings:
The ...xlink:href=@data:mimetype;base64,.. is a data URL. https://developer.mozilla.org/en-US/docs/Web/URI/Schemes/data
A data URL allows arbitrary content. MediaWiki wants to limit that content, so it only accepts a limited number of data URL mimetypes. The mimetype is not specified in the data URL, so MediaWiki will reject the upload.
The element is probably trying to include a bitmap image. Inserting the appropriate mimetype between the colon and semicolon should fix the problem. Acceptable mimetypes are image/jpeg or /image/png.
Glrx (talk) 18:47, 5 December 2024 (UTC)[reply]
Hi Glrx thanks very much for the technical explanation, unfortunately I'm far too much of a muggle to work out how to use it. Do you have a suggestion of which program to use and what buttons to press to resolve this? Thanks again, John Cummings (talk) 08:34, 6 December 2024 (UTC)[reply]
@John Cummings:
Use a text editor. Search for href="@data:. then add the appropriate mimetype after the colon and before the semicolon. Save the file. Then open the file in a browser to see that it displays correctly (Windows: locate file in the File explorer; then right click and open with Chrome/Edge/Firefox/whatever). If the file is good, then upload the file to Commons.
Glrx (talk) 16:13, 6 December 2024 (UTC)[reply]

Sorting audio files by duration

[edit]

I'd like to sort audio files not by recency or relevance but by duration (maybe filesize would also work as a proxy for that). Is that possible somehow? I'd like to use it in a category of spoken Wikipedia audios for example to be able to choose between a very long or a shorter audio. It would probably be useful also for many other kinds of applications. Prototyperspective (talk) 16:39, 5 December 2024 (UTC)[reply]

Image duration is not an indexed field in the database I believe. It's only in the db's metadata structure of a file's record, which makes it difficult to query over a collection of files. —TheDJ (talkcontribs) 10:42, 6 December 2024 (UTC)[reply]
I figured maybe it was in the searchindex, but I think it isn't in those indexes either. —TheDJ (talkcontribs) 10:47, 6 December 2024 (UTC)[reply]
But you can sort by filesize from quarry: https://quarry.wmcloud.org/query/88499TheDJ (talkcontribs) 10:49, 6 December 2024 (UTC)[reply]
Thanks, that's helpful. However, that's just the filesize, not the duration and I'm looking for something that can be used in the UI (integrated into MediaSearch or SpecialSearch). Strange if it's not in the database since on the file page there is a field "Dimensions" which shows both the file-size and the duration (except for files with this bug). Prototyperspective (talk) 11:11, 6 December 2024 (UTC)[reply]
The file page is just one page, it can descend into the metadata relatively cheaply. Sorting is a 140+ million row operation and for that we need to pre-extract the information and put it into a separate column of the database and keep an index. We do this for width, height and file size, but not for duration. —TheDJ (talkcontribs) 15:54, 10 December 2024 (UTC)[reply]
An extra column for duration like for media width would be very useful then. It would also enable finding & fixing more of the files that display a duration of 0 (and by now I also found a mp3 and an ogg file with that). Prototyperspective (talk) 16:07, 10 December 2024 (UTC)[reply]

Shifting Mbox to Lua

[edit]

Hello, you are invited to participate in the discussion at Template_talk:Mbox#Shift_to_LuaMatrix(!) ping onewhen replying {user - talk? - uselesscontributions} 20:40, 5 December 2024 (UTC)[reply]

Error with a file

[edit]

Hello, I noticed this file File:Bihar district location map Bhojpur.svg, the image is not loading, and opening the image shows message

error on line 3 at column 43: xmlns:ns: '&#38;#38;#38;ns_sfw;' is not a valid URI

I hope somebody can fix it. Thanks, ExclusiveEditor (talk) 20:50, 5 December 2024 (UTC)[reply]

Fixed namespace declaration. File should display in a couple hours. Glrx (talk) 22:01, 5 December 2024 (UTC)[reply]

Lua error: expandTemplate: template "subst:Custom license marker added by UW" does not exist.

[edit]

Is anyone else getting this message on the file pages when using the custom license option on the Upload Wizard? Example at File:(CHN-Shanghai) Pudong Yanggao W0K-114 沪A31192D 581 2024-12-08.jpg. 沪A 05683DS5A-0043 14:08, 8 December 2024 (UTC)[reply]

Someone should batch-remove all 142 instances of {{self|subst:Custom license marker added by UW}} after phab:T364150 is fixed. See Template:Custom license marker added by UW for historical context. Dexxor (talk) 12:56, 18 December 2024 (UTC)[reply]

Tech News: 2024-50

[edit]

MediaWiki message delivery 22:12, 9 December 2024 (UTC)[reply]

Dezoomify and Imperial War Museum images

[edit]

I've slowly been requesting overwriting of various files from the IWM. They've been so gracious in correcting exposure on some of those (as I write this, I begin to wonder whether the modifications are enough to warrant copyright protection...), but there being multiple versions of a file seems to confuse Dezoomify, who only pulls the second version with lighting issues. With the help of ChatGPT, I could extract the exposure-corrected one, albeit at a reduced-resolution (1000x1300, compared to the 2400x3000 unedited) version of the edited image. Is there something I'm doing wrong in terms of extracting the edited image in all of its glorious pixels?

The IWM file in question is https://www.iwm.org.uk/collections/item/object/205022125

Here's the ChatGPT convo: https://chatgpt.com/share/67577715-c474-8003-a35e-2456499c0a64

Thanks. JayCubby (talk) 23:12, 9 December 2024 (UTC)[reply]

Similarly, there appears to be a better version of File:John Finnis (captain) 2.jpg (source: https://collections.slsa.sa.gov.au/resource/B+343) at https://collections.slsa.sa.gov.au/resource/B+343/tiles.json
but Dezoomify isn't working on the code as I'd expect:
Extended content
{"levels":[{"name":"z0","width":3006,"height":3284,"tiles":[{"y":0,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/93\/ee\/4ea0-8f91-594a-bb45-6e36147b4cac.jpg"},{"y":0,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/1b\/31\/9d2a-035e-58bb-8c1f-38999503f045.jpg"},{"y":0,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/2c\/6c\/168b-2b7c-52bd-9b82-747fead2bbb4.jpg"},{"y":0,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/74\/ac\/d084-db20-5cdc-afe8-a285f5c22335.jpg"},{"y":0,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/d0\/da\/58b4-c901-5e36-abfe-31676e0b4917.jpg"},{"y":0,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/aa\/d9\/0f37-25da-5193-b432-a3899876789b.jpg"},{"y":1,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/9b\/b1\/989e-d032-5c2a-9c1c-99e9ad2f8c3b.jpg"},{"y":1,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/80\/3d\/97c0-6713-5bfc-b6af-5e9dd24fe741.jpg"},{"y":1,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ce\/ed\/cfd7-7f96-59a5-a91c-60d83751a1e2.jpg"},{"y":1,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/5e\/20\/c4df-e97e-56f7-8584-4bf3b4697f53.jpg"},{"y":1,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/58\/55\/7f12-d001-5439-9f45-1c8f0e122b5f.jpg"},{"y":1,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/18\/7d\/f8ad-7ccb-5c0e-ae3f-cd7901f595f7.jpg"},{"y":2,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/07\/e1\/cf54-0773-5c12-9ca9-bacd44deb945.jpg"},{"y":2,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/0b\/35\/0555-cc62-5107-9673-39e8fb77e77e.jpg"},{"y":2,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/3b\/50\/2e1e-8d87-5503-b37b-3e38229e29ae.jpg"},{"y":2,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/36\/e1\/018c-1d1d-551f-98e3-46e998cb5933.jpg"},{"y":2,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/26\/23\/bf35-51ee-55ce-92dd-7c983fa240e8.jpg"},{"y":2,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/58\/2b\/0786-dd37-5392-b071-772ee8d09072.jpg"},{"y":3,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/08\/bc\/901e-f710-54af-a4f7-f03ae3790229.jpg"},{"y":3,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/d4\/f6\/1416-dbcb-5ce1-b770-b2537d217f04.jpg"},{"y":3,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/00\/92\/3759-befa-5640-8cc6-4ba6df34c1b4.jpg"},{"y":3,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/61\/56\/c6b9-9915-5f1d-b498-5fd2f7f14571.jpg"},{"y":3,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/c1\/7a\/8c83-9837-5bd8-9cd9-d4181cb3883f.jpg"},{"y":3,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ad\/45\/d831-e582-596d-bfec-58642336f579.jpg"},{"y":4,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/f3\/3b\/d96e-dd16-511a-89f1-86fff5a0d0e1.jpg"},{"y":4,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/92\/be\/9383-9be8-5ce9-8ab0-ac6f207fd09b.jpg"},{"y":4,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/c6\/36\/c01d-4018-5b8a-a87f-cd1cf9338003.jpg"},{"y":4,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/80\/77\/81c0-ea95-5bbb-a9ef-28fec974c7a2.jpg"},{"y":4,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/d8\/1c\/9218-a311-5572-bd1f-e0f9c044fd65.jpg"},{"y":4,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/88\/1c\/c60e-f76c-5d17-9169-387f67aa5cc0.jpg"},{"y":5,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/1f\/b9\/4b6c-7427-502f-84c1-785d75b6b98d.jpg"},{"y":5,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/61\/37\/d011-c75d-5b14-92fe-cbcb39448630.jpg"},{"y":5,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/0a\/97\/0022-9699-55c9-9d46-c027d10d14d2.jpg"},{"y":5,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/e0\/91\/e26e-32a9-512b-97b3-c050b770b978.jpg"},{"y":5,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/b6\/cd\/8149-7875-5711-964b-124dd03def54.jpg"},{"y":5,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ea\/b6\/f5d8-9a15-5e38-bc4b-54d39724d413.jpg"},{"y":6,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/3f\/6d\/f8ad-b178-5bdb-b342-d51131d24f39.jpg"},{"y":6,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/4d\/14\/15a1-af49-5943-93bc-862741798f4f.jpg"},{"y":6,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/1b\/54\/1587-3fd9-58b5-99e7-2d87ba3fe4da.jpg"},{"y":6,"x":3,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/c1\/0a\/f6c7-82d7-5438-8eee-c502db386eb6.jpg"},{"y":6,"x":4,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/dc\/64\/8a9b-731f-55ee-b0f5-939711f58e35.jpg"},{"y":6,"x":5,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/13\/e0\/be03-1615-5668-bca7-4d43223774e5.jpg"}]},{"name":"z1","width":1503,"height":1642,"tiles":[{"y":0,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/f1\/c4\/8c1e-cdcf-5bb3-96a9-c48a4f860863.jpg"},{"y":0,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/d8\/ca\/45c9-07bf-5f35-a07d-dec980c1020a.jpg"},{"y":0,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/48\/b0\/b576-df0d-5c22-827a-24764fad0bc5.jpg"},{"y":1,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/15\/91\/5c3f-151d-54a1-80ef-5bf552bd5ed1.jpg"},{"y":1,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/28\/19\/9e51-c58c-5474-9006-48c159853eab.jpg"},{"y":1,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/8c\/9c\/3076-c290-5432-9502-0053dd3261a4.jpg"},{"y":2,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/2b\/fd\/6a89-9468-5737-9e08-6b40dfd4a1ab.jpg"},{"y":2,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/3c\/25\/b1f8-2f4e-5354-a9e1-147b772f1572.jpg"},{"y":2,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/74\/ef\/8de9-bf88-5715-8fa4-f1bdc52a9672.jpg"},{"y":3,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/e9\/ca\/9eb7-2447-5aff-8b1a-abd774fa1337.jpg"},{"y":3,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ad\/eb\/a514-b9ea-5ad2-a86d-ccd3348075e1.jpg"},{"y":3,"x":2,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/1e\/e3\/6d21-254f-5483-bfc1-68cdb761f7f2.jpg"}]},{"name":"z2","width":751,"height":821,"tiles":[{"y":0,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/07\/d8\/d3d2-47fc-557a-8bae-1c429d2f0d29.jpg"},{"y":0,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ef\/9e\/693e-acd5-5455-a55a-471150fb2faf.jpg"},{"y":1,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/8c\/a3\/5bc9-e28e-5c16-9300-9f6087659565.jpg"},{"y":1,"x":1,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/ec\/5d\/cf8c-46a3-5e07-a8e2-f363ff9ecbb2.jpg"}]},{"name":"z3","width":375,"height":410,"tiles":[{"y":0,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/5c\/97\/6f40-b15f-57d5-964d-d5c9d86d6742.jpg"}]},{"name":"z4","width":187,"height":205,"tiles":[{"y":0,"x":0,"url":"https:\/\/d1red3q7jhuy4m.cloudfront.net\/13\/06\/fffe-74e1-5a68-bf30-3b531ba246f2.jpg"}]}]}

JayCubby (talk) 17:07, 10 December 2024 (UTC)[reply]

Hi. If Dezoomify does not yield the desired result, then we have other methods ... First, look at the code for the page. On the page mentioned in IWM, press Shift + Ctrl + i (works in Firefox) to see the code window. In the code window, you should use the "Network" tab. Then click on the desired picture (the one to the left?). You will see three lines of code, one with the "info.json" file that is used by Dezoomify, and two with jpg files that result in thumbs of the picture. If you click on the bottom jpg codeline, you will see this code: https://media.iwm.org.uk/cantaloupe/iiif/2/171%7C%7C950%7C%7Csuper_000000.jpg/full/251,/0/default.jpg
Now substitute "251" with "2400" and Voila! You get a picture in 2400 x 3111 (at least that is how it worked for me). You might try with larger values than "2400", but the system at IWM would block that option. Hope this helps. Cheers Rsteen (talk) 03:27, 11 December 2024 (UTC)[reply]
Great, I can do that going forward and many thanks! Often images that have been retouched aren't accessible beyond the 2400px, or so I've unreliably figured out after further digging in the source code. JayCubby (talk) 03:53, 11 December 2024 (UTC)[reply]
Interesting. I use the Dezoomify extension on Chrome, and I only get 1536 x 1990 pixels. Please note that this may not be in the public domain. They say "Press agency", not a government picture. Yann (talk) 09:59, 11 December 2024 (UTC)[reply]

Upload shown as "completed" in OpenRefine, but no upload has been made to Wikimedia Commons

[edit]

Background: I am not new to coding and data processing, but to the Wikimedia Commons sphere. I am developing a batch uploading process for the object photographs of a community archive of everyday material culture in Singapore as image sources for their Wikibase Cloud instance (NGO "My Community, Data Partner of Wikimedia Germany, see here). I was sent here by my post on the general Help Desk: https://commons.wikimedia.org/wiki/Commons:Help_desk#OpenRefine_Upload_to_Wikimedia_Commons_failing_without_notice_(abuse_filter_triggered?).

Problem: I have prepared and reconciled all relevant metadata, filenames and filepath in OpenRefine for a test batch of 5 images, including schema preparation with "add media" to Wikimedia Commons. When I did a first technical trial run of the pipeline a month ago, my images successfully uploaded to Wikimedia Commons even though the metadata was far from perfect at the time. Now that I have worked on the data transformation, following the Wikimedia best practices as closely as I could, I have the same thing happening to me as this user here: https://forum.openrefine.org/t/no-errors-reported-and-the-percentage-completed-went-through-but-no-upload-done/899. I get a "100% percent completed" notification from OpenRefine but no uploads have been made (I checked under my user profile as well as searched for the file names).

For reference, see the permalink to my OpenRefine project (hopefully this works!).

What could be the issue? I'd gladly provide more information once I know what is needed here. Thanks! Esxx24 (talk) 22:54, 11 December 2024 (UTC)[reply]

I wanted to start with OpenRefine, too, but it was too complicated for me, so I quit. I think this topic is too unknown that it is covered by several people --PantheraLeo1359531 😺 (talk) 15:21, 31 December 2024 (UTC)[reply]

Tech News: 2024-51

[edit]

MediaWiki message delivery 22:21, 16 December 2024 (UTC)[reply]

Icons8 svg MIME-type not SVG

[edit]

If you install m:User:Tol/RealSVG.js and go to Category:Icons8 flat-icons, you'll see that a ton of the SVGs disappear. Why? According to the W3C checker, their content type is text/plain! Is there some way to (perhaps check all and) change SVGs content types in bulk? Aaron Liu (talk) 01:02, 17 December 2024 (UTC)[reply]

Validate offline and re upload. Or if they are valid and can be identified easily (by prefix for instance) it might be worth it to run a server side script, but this requires a Phabricator ticket. The cause might be that there is no XML DOCtype declared for these files. —TheDJ (talkcontribs) 12:21, 17 December 2024 (UTC)[reply]
Being more concrete with two example files.
Glrx (talk) 18:33, 17 December 2024 (UTC)[reply]

Need help replacing a photo

[edit]

Rebecca Moore (en:Rebecca Moore (scientist)) is a friend of mine. When I told her what her picture was used in Wikipedia (because she never looked at her own page - haha), she was appreciative of the guy who uploaded it, but wished he had uploaded one she felt better represented her and her work. (Yes, the Rachel Carson Award was a great honor, but she thinks the work in Brazil with helping Chief Almir and the Surui tribe save their rainforest was more meaningful.) She gave me the original photo that they used in Time Magazine article April 15, 2016,(https://time.com/4295351/rebecca-moore-google-earth-outreach/) to replace it. I cropped the original 1600 x 1062 to be square, but then realized I couldn't upload it. Can someone please do that for me if I get you the photo? And how would I do that? My real email is martha.legare@gmail.com. Thanks much for your help, Martha MarleeRobertson (talk) 05:58, 19 December 2024 (UTC)[reply]

@MarleeRobertson: Hi, We need a written permission from the photographer, unless he/she uploads it her/himself. And it would be much better to have the original image first, it can always be cropped later. Please see COM:VRT for the procedure. Yann (talk) 09:41, 19 December 2024 (UTC)[reply]
Thanks. To make sure I'm clear: we (and thank you!) can replace the current photo as long as we get the Brazilian photographer's permission, not the guy who posted the current photo? The photo I have was taken for Google - I'm 99% sure they paid her for it. (I think the photographer was from Brazil - will check with Rebecca.) I appreciate your help. MarleeRobertson (talk) 04:09, 20 December 2024 (UTC)[reply]
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. --廣九直通車 (talk) 09:26, 2 January 2025 (UTC)

Image failing to load

[edit]

This image, File:Papua New Guinea relief map.svg, is failing to load globally, and I don't see any indication as to why. The image hasn't been modified in a few years, and the image loads from the direct URL ([11]) and from the link on the description page, but doesn't load when it's placed inline. Is this some kind of database error? Ivanvector (talk) 13:55, 19 December 2024 (UTC)[reply]

Bad ns: namespace declaration fixed. Image should appear in a couple hours. Glrx (talk) 19:03, 19 December 2024 (UTC)[reply]
Same problem as #Error with a file above. Glrx (talk) 23:05, 20 December 2024 (UTC)[reply]

Template:Q+/doc on Wikispecies

[edit]

I imported {{Q+}} and Template:Q+/doc from this project into Wikispecies, but the latter is behaving very oddly, and the former not working as expected, and I cannot figure out why. Wikispecies is a small project with few technical editors; can someone assist there, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:07, 19 December 2024 (UTC)[reply]

Uploading error

[edit]

Hi! It seems that there is a problem during File-uploading here on commons. The page was created for my picture, all descriptions and categories can be seen, but the picture itself is missing. Instead I get following message: "Die Datei „mwstore://local-multiwrite/local-public/1/15/Bargischow_Kirche_lub_2024-07-27_img01.jpg“ befindet sich, innerhalb des internen Speicher-Backends, in einem inkonsistenten Zustand." Is this a known issue, is the issue being resolved, and is there a chance I can add my images to the page without having to go through all the work of describing and categorizing again? Thanks in advance Lukas Beck (talk) 20:03, 23 December 2024 (UTC)[reply]

Hi, I got an error while uploading a big video with Chunked Uploads, and many errors while deleting files. It seems there is some issue on the servers today. Yann (talk) 21:22, 23 December 2024 (UTC)[reply]

Issue w/ populating cats by templates

[edit]

I used {{US state by city}} to create further subcats of Category:Alaska by city by year. Three days later, those cats are still empty. I don't know much about template programming, but looking over the code, the various by city templates should populate this cat automatically. Please help me out with what missteps may have occurred. RadioKAOS / Talk to me, Billy / Transmissions 23:08, 23 December 2024 (UTC)[reply]

To the best of my knowledge, the by city templates were created via copypasta, so they should have the same syntax and behave the same. Digging further, I wonder if the problem is actually with the above-linked template. Category:2009 in Alaska by city is not populated by the subcats, but does populate Category:2009 in the United States by city by state. OTOH, Category:2010 in Alaska by city is populated by the subcats, but does not populate Category:2010 in the United States by city by state. The former was created by me the other day, while the latter was part of a series created by another editor over three years ago. I haven't examined the breadth of this tree, but the "by city by state" cats for each year appear to be devoid of subcats which should be in there. RadioKAOS / Talk to me, Billy / Transmissions 23:54, 23 December 2024 (UTC)[reply]
The revision history shows it's been edited by @Ricky81682: , @Verdy p: , @AnRo0002: and @SecretName101: . Perhaps you should double-check your edits, as it's apparent the template originally worked correctly but is now broken. I looked over other states' trees in the meantime and the same problem exists. RadioKAOS / Talk to me, Billy / Transmissions 16:09, 24 December 2024 (UTC)[reply]
Looks like a cache issue to me. Category:2010 in the United States by city by state did not have "Category:2010 in Alaska by city" this morning but does now, try doing an edit without any changes on those catgories that are not linked. The edit will not show up in edit history. Snævar (talk) 23:43, 24 December 2024 (UTC)[reply]
I looked at the cat again just now. The Alaska subcat was the only state subcat present, and that's been the case for several days now. For 2010 alone, there also exists 25 other such subcats (California, Colorado, Connecticut, Florida, Georgia, Illinois, Indiana, Iowa, Louisiana, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Nevada, New Jersey, New York, Ohio, Oregon, Pennsylvania, Rhode Island, Tennessee, Texas, Virginia, Wisconsin). The majority of those subcats had the template added to it within days after it was created in 2021. I don't know if they've been broken for 3+ years or if this is a recent thing. What I do know: I've been clearing my caches as I go along, which hasn't changed anything. I waited several days before originally reporting this in case it was an issue with a database catching up. I tried the null edit and it didn't appear to do anything. The examples I offered don't exist in a vacuum and shouldn't be treated as such. It's clear something is wrong and it appears rooted in the template. There's scores more states, scores more years, and other templates primarily designed to populate cats which aren't doing so. Another example is {{Earthquakes in Alaska}}. I made a simple edit to adjust its position on the tree, but those cats aren't being populated as such. In the future, if the templates' creators and maintainers aren't willing to address the problem, I'll simply comment them out and return to populating the cats by hand until something does change. RadioKAOS / Talk to me, Billy / Transmissions 21:22, 27 December 2024 (UTC)[reply]
I tested just now doing a null edit (an edit without changing anything) on Category:2009 in California by city and it got added to Category:2009 in the United States by city by state. The link gets placed by the California category, not the United States category. I think you may have done a null edit on the United states category, which yes, does nothing. Null edit the subcategory, not the parent. Also there are two caches here, one on your side, and one on the server side. If you do not see California in the United States Category, then clear your client cache (it might be ctrl+F5, maybe something else, it depends on your browser and operating system).
I then procceded with the other subcats you mentioned, the ones that exist, and now the United States category is at 24 entries. I did not find 4 entries in your list, they showed up as redlinks. If you have more of those, ask a bot operator to help you.
Waiting for this is going to take ages. I tested this a short while ago, so I know for sure. What happens is that every 30 days - when the server side cache expires, 30 items get added to the category. Also, the link on the subcategory gets added first and then it gets added to the parent a month later. So, if i did not null edit Category:2009 in California by city it would have gotten a link to the Category:2009 in the United States by city by state as the template was added, but California would not be in the United states category until a month later.
There is absolutely nothing the template can do here, this is a problem with the underlying software, MediaWiki, not the template. File a report on phab:, blaming the template is not going to change anything. I do not care if you will start adding the wikicode yourself without the template. Snævar (talk) 04:55, 28 December 2024 (UTC)[reply]

Someone has been messing up with categories

[edit]

When you look at Category:Amastra, you'll find categories of which the name has changed by a vandal, e.g.

  • Ancient Amastra should be Amastra antiqua
  • Amastra Abbey should be Amastra badia
  • Amastra Baldwiniana should be Amastra baldwiniana
  • Amastra horny should be Amastra cornea
  • Hulled Amastra should be Amastra decorticata
  • Amastra fossil should be Amastra fossilis
  • Fraternal Amastra should be Amastra fraterna
  • Amastra Grayana should be Amastra grayana
  • Amastra Johnsoni should be Amastra johnsoni
  • Amastra Lahaina should be Amastra lahainana

and many more. When I press F5 on my keyboard, the proper name appears for a second or two and then changes again into the vandalised names. I have tried to find a solution for this, but I'm at a loss. Can someone put this right ? JoJan (talk) 10:16, 24 December 2024 (UTC)[reply]

I don't see any of these names. When I look at the history for Category:Amastra badia, for example, I also see no edits to it. If it was moved, that would show in the history. The Squirrel Conspiracy (talk) 01:06, 25 December 2024 (UTC)[reply]
I show you a partial clipboard of what I see on my computer (the arrows are mine):
Partial clipboard of the Category:Amastra
. Perhaps this will help solving this problem. JoJan (talk) 14:15, 25 December 2024 (UTC)[reply]
@JoJan It looks like you have Google Translate attempting to translate these. Try clicking the icon (next to the bookmark star in the address bar), then select Italian (or whatever it detects the source language as). —‍Mdaniels5757 (talk • contribs) 16:46, 25 December 2024 (UTC)[reply]
Thank you very much. I would never have thought of this as a solution. JoJan (talk) 16:50, 25 December 2024 (UTC)[reply]
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. --廣九直通車 (talk) 09:26, 2 January 2025 (UTC)

Force display of graphics without anti aliasing

[edit]

Hi! It is common to smooth edges in raster images to make them look more aesthetic to the eye. But sometimes, it is desired not to apply this anti aliasing (for example for small 8-bit graphics). Otherwise it looks blurred. Is there a way to change the display style?

mini A pixelated arrow looks blurred, which is undesired in this case.

Thanks! --PantheraLeo1359531 😺 (talk) 10:34, 25 December 2024 (UTC)[reply]

The best solution for such cases would be to just use SVG instead. GPSLeo (talk) 13:31, 25 December 2024 (UTC)[reply]
Yeah, I thought about it, too, but I guess there are several (unexperienced) users, who may not take the SVG conversion into account (and batch converting may be complicated, too)... --PantheraLeo1359531 😺 (talk) 14:51, 26 December 2024 (UTC)[reply]

EXIF data rendering omits space chars in some contexts

[edit]
A recent example of faulty metadata rendering, click thru to view and search on "LNG boom"

I raised a similar issue previously and was told the code involved is intricate and quite possibly quirky and that the problem I described is relatively minor — in short, creating a fix is not especially likely. That earlier example involved ␣< sequences in email addresses.

For context, I specify my JPG metadata using YAML — a language with its own idiosyncrasies — and write that information to file using Python and ExifTool.

My latest upload (see thumbnail) used single quotes preceded (or followed) by spaces in the EXIF::Image Description metadata field, namely ␣'. This sequence was rendered faithfully to my terminal by Python and reported correctly on upload and download by both ExifTool and the gThumb image viewer. So I assume that the metadata is stored correctly in the JPG file.

But Wikimedia omits the leading (or trailing) space char in that sequence in the Description field and in the Metadata table. I duly edited the Description field to correct the corrupted string. But the faulty Metadata table rendering cannot be so easily fixed by users.

This presumed bug might not seem important but I can imagine use‑cases where confusion could result. In any case, I am raising the matter in the hope that a fix might be given some increased priority. Best, RobbieIanMorrison (talk) 22:46, 25 December 2024 (UTC)[reply]

Another post about GFDL

[edit]

Yes, it is another of those posts about GFDL :-) (the other were on main VP)

But the new is that

  1. There should be no more disclaimers added to any new uploads and all template with disclaimers are now named so it is clear they have disclaimers. See w:en:Wikipedia:GFDL standardization.
  2. The GFDL update is complete with very few exceptions (mostly files that are suspected to be copysios and fixing a few templates). See Commons:License Migration Task Force/Migration

Per December 27, 2024 there are estimated to be 153,000 files liecensed GFDL outside Commons. Please note that some license templates categorize files in more than one category so some files are counted more than once (mostly screenshots).

Below are categories with more than 1,000 files licensed GFDL as an example.

Category QID Files Date issue Remarks
w:en:Category:GFDL files d:Q7237102 36,017
v:en:Category:GFDL files d:Q7237102 30,435
w:de:Category:Datei:GFDL d:Q7237102 15,719
w:en:Category:GFDL files with disclaimers d:Q6803049 10,497
w:uk:Category:Зображення GFDL d:Q7237102 7,325
w:ru:Category:Файлы:GFDL d:Q7237102 7,101
w:id:Category:Berkas GFDL d:Q7237102 2,620
w:fa:Category:پرونده‌های تحت گنو-with-disclaimers d:Q6803049 2,341
w:fi:Category:GFDL-kuvat d:Q7237102 1,971
w:id:Category:Gambar berlisensi bebas (GFDL) (Karya sendiri) d:Q7459784 1,884
w:cy:Category:Delweddau GFDL d:Q7237102 1,799
w:te:Category:GFDL files d:Q7237102 1,798
w:sr:Category:ГФДЛ слике d:Q7237102 1,710
w:si:Category:GFDL ගොනු d:Q7237102 1,566
w:en:Category:Screenshots of Wikipedia d:Q7136442 1,489
w:mr:Category:GFDL d:Q7237102 1,479
w:ko:Category:GFDL 파일 d:Q7237102 1,446
w:az:Category:Fayl:GFDL d:Q7237102 1,419
w:lt:Category:GFDL-self paveikslėliai d:Q7459784 1,400
w:sl:Category:Datoteke GFDL d:Q7237102 1,241
w:ja:Category:GFDL画像 d:Q7237102 1,165

I could use some help to find the number of files that can't be moved to Commons because the files are not dual-licensed and they are uploaded after 15 October 2018. (They should go in the column "Date issue").

If anyone can think of a good way to automatize the count it would be great. Otherwise I can only think of checking the files manually (if there are only a few files) or with for example https://petscan.wmcloud.org/.

You can see all categories at User:MGA73/GFDL-list and you are very welcome to have a look. MGA73 (talk) 09:50, 28 December 2024 (UTC)[reply]

Template: {{Attribs}}

[edit]

hi, in this template I miss the line breaks between the individual elements - perhaps somebody can help - for example:

 
This vector image includes elements from this file:
Test.svg.
 
This vector image includes elements from this file:
Test.png.

The template also clashes with other content, creating a slight mess

files:

Mrmw (talk) 11:10, 28 December 2024 (UTC)[reply]

Open files uploaded by a user all in new tabs

[edit]

How to open x recent files uploaded by a given user in new tabs at once? It takes very long to click all of them. Alternatively, a way to replace a category based on the file title would be great as well but it probably doesn't work as well. Here's what I intend to do:

going through the recent uploads of Florin Talasman to replace category "Agricultural products" with whatever product the map is about which varies per file (e.g. kiwis).

For example, maybe it's possible to output files uploaded by a user with Wikimedia Commons Query Service in a column with the URLs, then select all those URLs (maybe copy pasting it somewhere) and drag them into the Firefox tabs to open them all in new tabs. That didn't work because I could only query for files created by the user but not files uploaded by that user (see also Make it possible to search by page author /contributor/ uploader).

I think this is generally useful, not just for this particular example case. Prototyperspective (talk) 22:58, 28 December 2024 (UTC)[reply]

If you have all the links (e.g. from Special:Log/upload), you can use an extension like Linkclump or [12] to open them all in new tabs. —‍Mdaniels5757 (talk • contribs) 23:11, 28 December 2024 (UTC)[reply]
I can just drag and drop the URLs once I have them all marked to open them all in new tabs in Firefox. The problem is in getting the plain URLs. Prototyperspective (talk) 23:17, 28 December 2024 (UTC)[reply]
for(const d of document.querySelectorAll('.TablePager_col_img_name a:nth-child(1)')) console.log(d.href);
output https://litter.catbox.moe/2we6sw.txt 999real (talk) 15:19, 31 December 2024 (UTC)[reply]
Is this javascript to be used in the Web console of the recent uploads page (Special:ListFiles) or where? Prototyperspective (talk) 16:49, 31 December 2024 (UTC)[reply]
Yes in console on Special:ListFiles pages
This one you can save as a bookmark and it will write to clipboard directly
javascript:(function() { navigator.clipboard.writeText(Array.from(document.querySelectorAll('.TablePager_col_img_name a:nth-child(1)')).map(link => link.href).join('\n')) })(); 999real (talk) 22:42, 31 December 2024 (UTC)[reply]
Thank you! That's very helpful and I guess solves this issue. It should probably be in some relevant Help page so people looking for this functionality can find it. I think one can't filter files to only copy files that are videos of a specified resolution that way (which would be a workaround to solve phab:T377606) so a way to search files uploaded by a given user would still be useful. Prototyperspective (talk) 22:47, 31 December 2024 (UTC)[reply]
I tried write one but Special:ListFiles does not show the resolution directly, this is very slow because it has to load video metadata to fetch the width and height
(function() {
	function getVideoDimensions(videoUrl) {
		return new Promise((resolve, reject) => {
			const videoElement = document.createElement('video');
			videoElement.src = videoUrl;
			videoElement.addEventListener('loadedmetadata', () => {
				const width = videoElement.videoWidth;
				const height = videoElement.videoHeight;
				resolve({ width, height });
			});
			videoElement.addEventListener('error', (e) => {
				reject(`Error loading video: ${e.message}`);
			});
			videoElement.load();
		});
	}
	const uploads = document.querySelectorAll('.TablePager_col_img_name a:nth-child(2)');
	const toCopy = [];
	const promises = [];
	for (const d of uploads) {
		const url = d.href;
		if (url.endsWith('.mpg') || url.endsWith('.mpeg') || url.endsWith('.ogv') || url.endsWith('.webm')) {
			const promise = getVideoDimensions(url).then(dimensions => {
				const minimumWidth = 1000;
				const minimumHeight = 720;
				if ((dimensions.width < minimumWidth) || (dimensions.height < minimumHeight)) {
					toCopy.push(url);
				}
			}).catch(error => {	
				console.error(error);
			});
			promises.push(promise);
		}
	}
	Promise.all(promises).then(() => {
		if (toCopy.length === 0) {
			alert('Nothing to copy');
		} else {
			navigator.clipboard.writeText(toCopy.join('\n')).then(() => {
				alert('Copied ' + toCopy.length + ' items');
			}).catch(err => {
				console.error('Failed to copy: ', err);
			});
		}
	});
})();

Then I found VisualFileChange interface actually shows video dimensions, this is much faster

(function() {
	const toCopy = [];
	const titles = document.getElementsByClassName('jFileTitle');
	const dimensions = document.getElementsByClassName('jFileSize');
	
	const minimumWidth = 1000;
	const minimumHeight = 1000; 
	
	for (let i = 0; i < titles.length; i++) {
		const url = titles[i].href;
		if (url.endsWith('.mpg') || url.endsWith('.mpeg') || url.endsWith('.ogv') || url.endsWith('.webm')) {
			const ds = dimensions[i].textContent.replace(/^.*KiB/, '').replace('px', '');
			const width = ds.replace(/^.* x /, '');
			const height = ds.replace(/^ x .*/, '');
			if((minimumHeight > parseInt(height.replaceAll(' ', ''))) || (minimumWidth > parseInt(width.replaceAll(' ', '')))) toCopy.push(url);
		}
	}
	if (toCopy.length === 0) {
		alert('No videos with width below ' + minimumWidth + ' or height below ' + minimumHeight + ' found on this page');
	} else {
		navigator.clipboard.writeText(toCopy.join('\n')).then(() => {
			alert('Copied ' + toCopy.length + ' items');
		}).catch(err => {
			console.error('Failed to copy: ', err);
		});
	}
})();

999real (talk) 00:09, 1 January 2025 (UTC)[reply]

@Prototyperspective for this specific case, since what you want can be extracted from the title, you could use com:vfc to batch replace "Category:Agricultural products" with "Category:{{subst:#invoke:String|sub|s={{subst:PAGENAME}}|j=-22}}s", and then fix any possible errors. RoyZuo (talk) 08:30, 1 January 2025 (UTC)[reply]

Requesting features on colour blindness acessibility templates

[edit]

Hello, I have recently been working on adapting maps and other files to be readable by colour blind users. I'd like to add some (in my opinion, non-controversial) features to a few templates used in this area, but my wikitext comprehension isn't good enough for this. Any help would be greatly appreciated.

The templates I'd like to edit are {{Colour blind accessible}} and {{Colour blind}}. One for marking accessible files, and the other for marking ones that have issues.

There are many image sets that are completely reliant on colour information for highlights, for example in math-related categories (see Category:Planar circle packings; red and blue for an image set without issues). Considering the nature of image sets in Commons, it would be better and easier to maintain if we could add the Colour blind accessible template to image set categories instead of each member individually.

I have managed to add such a parameter to the template above, adding anything to |set= adjusts the text on the notice box. However I haven't learned conventions for templates localised through autotranslate, and I suspect my implementation breaks good practice by mixing up parameters on the main template with parameters on the subpage ({{Colour blind accessible/en}}).

I'd like to request a once-over on the template from someone more experienced than me, as well as a switch that changes the category inserted by that template from Category:Images accessible to colour blind people to Category:Image sets accessible to colour blind people. Similarly, I'd like to request a feature for using the Colour blind template in categories for image sets, instead of just file pages. I'd be really thankful if anyone could help with this!

P.S. that the category tree for the cats used by these two templates is a bit messy right now because lots of files on it had the category added manually instead of through the template, I'm working on fixing them. Croomfolk (talk) 23:56, 28 December 2024 (UTC)[reply]

Umlauts should be sorted to display at the expected place

[edit]

For example Ö should display next to O instead of after Z. See e.g. Special:Diff/977365497 by Jochen Burghardt. Umlaut (linguistics).

Could a change to the sorting be made? Prototyperspective (talk) 15:27, 30 December 2024 (UTC)[reply]

No. Category sorting in mediawiki is made with collations. Collations exist for individual languages, but generally not a group of them like latin languages. German Wikipedia can have category sorting designed for German, but there is not a solution for a multilingual wiki like Commons, Wikidata and Meta. You would also get into issues like how to categorize french specific letters next to german ones, in all of the over 100 languages wikimedia commons services with their images. While having a english focused category sorting collation seems very english specific, it really is not, because english has a lot of the basic letters that a lot of latin languages use. The main defect of using english sorting is that it is bad for asian languages. Snævar (talk) 06:56, 31 December 2024 (UTC)[reply]
@Prototyperspective: In addition to what Snævar said, it's apparently close to impossible to make a global change to Commons' category sorting order at all. We asked for a different change to category sorting a few months ago and the WMF sysadmins haven't been able to work out a way to do it without a lot of disruption: phab:T362494. --bjh21 (talk) 09:55, 31 December 2024 (UTC)[reply]
Yeah Commons uses too many Categories. It is running into the limits of what is currently possible. —TheDJ (talkcontribs) 10:59, 31 December 2024 (UTC)[reply]
Would deleting the many empty ones help? Prototyperspective (talk) 11:00, 31 December 2024 (UTC)[reply]
No. As I understand it, the problem isn't really the number of categories, it's the number of category links. That is, the number of connections between categories and members. So an empty category with one parent costs about the same as a file that's in one category. Templates that put millions of files into categories have a much more significant effect. --bjh21 (talk) 11:55, 31 December 2024 (UTC)[reply]
In that case a script that changes the sorting of cats starting with ö to o may be useful. how to categorize french specific letters next to german ones right next to them like the umlauts. Prototyperspective (talk) 10:59, 31 December 2024 (UTC)[reply]
Of course, such a script would need to distinguish German from Swedish, where 'ö' sorts after 'z'. --bjh21 (talk) 11:58, 31 December 2024 (UTC)[reply]
I think the internationally/globally reasonable and expectable sorting would be sorting ö after o and è, é, ê, ë after e. That may or may not be the sorting commonly used in English but it doesn't matter much. It doesn't seem like an important issue however. Prototyperspective (talk) 12:38, 31 December 2024 (UTC)[reply]
I wonder if we can borrow some code from English Wiktionary. Is this something you want to replicate? English Wiktionary is multilingual in the sense that they have thousands of German page titles, Spanish page titles, etc. I believe they have a (semi-)automated system based on Lua modules that doesn't need DEFAULTSORT manually written on every page. You do need to specify the language per page through a template, though. whym (talk) 12:54, 31 December 2024 (UTC)[reply]
Interesting, there it's sorted well. Yes, replicating that would be great...above I suggested sorting umlauts separately after the letters but sorting them to be within them may be better (so ö is sorted as if it was o and é as if it was an e). I checked some of the pages and they didn't specify any sorting so it must be implemented differently if I'm not mistaken and I guess one could ask somewhere on wiktionary how it's been done. Prototyperspective (talk) 13:16, 31 December 2024 (UTC)[reply]

Lots of 503 errors suddenly...

[edit]

About half an hour ago while attempting to upload files, I started getting the "Wikimedia Error" page partway through, with "Request from [my IP] via cp1110 cp1110, Varnish XID 963178924 Error: 503, Backend fetch failed at [date and time]" at the bottom. This happens sometimes, usually due to my connection being weird, so I refreshed and the upload went through. But it's been getting steadily worse and now I basically can't upload at all, while the rest of my connection seems just fine. Something messed up on the backend maybe? The Bushranger (talk) 00:08, 1 January 2025 (UTC)[reply]

I assume it has been already resolved, at least I have just uploaded a file without any warnings. Ymblanter (talk) 16:53, 1 January 2025 (UTC)[reply]
It seems to have been cleared up today. - The Bushranger (talk) 01:42, 2 January 2025 (UTC)[reply]
I too got a lot of these since this morning... Yann (talk) 17:13, 1 January 2025 (UTC)[reply]
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Prototyperspective (talk) 12:59, 2 January 2025 (UTC)

Issue with restored DjVu files

[edit]

Hi, Restored DjVu files do not work, i.e. File:Rothschild Extinct Birds.djvu and first versions of File:Jameson - Montesquieu et l’esclavage.djvu. Any idea? Yann (talk) 17:42, 1 January 2025 (UTC)[reply]

here also. Yann (talk) 18:34, 1 January 2025 (UTC)[reply]