Commons:Village pump/Technical/Archive/2024/02

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

How can I revert my edit

I was updating a .pdf of a book with page problems that I had uploaded in the past. However, in the process, I didn't read the message advising not to upload a .pdf when updating a file. As a result, my file is now broken. Is there a way to revert my edit? Here is the file: File:A Bruxa de Monte-Cordova (1904).pdf Junglk (talk) 01:42, 1 February 2024 (UTC)

@Junglk: Scroll down to the file history and click the link that says "revert" next to the previous version of the file. I've gone ahead and done that here. —CalendulaAsteraceae (talkcontribs) 05:30, 1 February 2024 (UTC)

Odd template behaviour at Creator:Rabindranath Tagore

Hello, in the description field of this creator tag there is a preceding hyphen, and the word "Bengali" is wikilinked but I can't find this anywhere in the Wikidata description. Please also see Creator talk:Rabindranath Tagore. pinging previously involved editors: @Jeff G. and Pacha Tchernof: Matrix(!) {user - talk? - useless contributions} 17:43, 2 February 2024 (UTC)

@Matrix: I think I've worked out some of what's going on. The description is constructed by Module:NationAndOccupation, and it inserts a hyphen in the "nationality" part of the description where there are two nationalities. In the case of Rabindranath Tagore (Q7241) there are two values for ethnic group (P172), Bengali (Q402913) and Brahmin caste (Q47140). I reckon the empty string before the hyphen is a failed attempt at rendering Brahmin caste (Q47140). I haven't worked out why that's failing though. --bjh21 (talk) 18:06, 2 February 2024 (UTC)
I think it may just boil down to Brahmin caste (Q47140) not being in Module:NationAndOccupation/nationalityLUT, but I'm not sure. --bjh21 (talk) 18:12, 2 February 2024 (UTC)
@Bjh21: I've just specified the nationality manually at Creator:Rabindranath Tagore, so it should be good now. —Matrix(!) {user - talk? - useless contributions} 14:04, 3 February 2024 (UTC)

Deleted file disappeared

Hi, FYI I filled up a bug report for File:Derain_CharingCrossBridge.png which was deleted in 2006, and can't be restored. The file description is available, but the file itself disappeared. See phab:T356535. Yann (talk) 19:48, 2 February 2024 (UTC)

@Yann: Is this it: en:File:Derain CharingCrossBridge.png? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:19, 4 February 2024 (UTC)

GlobalUsageCount down

toolforge:globalusagecount has been down for weeks (it was reported here), and the maintainer Steinsplitter has not been active globally since December. I submitted an edit request at MediaWiki talk:Globalusage-header-image to use a mirror instead, but looking through Category:Commons protected edit requests for interface administrators it seems like there are intadmin edit requests that have been languishing for months without response, so I am reposting it here for visibility. Ahecht (TALK
PAGE
) 18:35, 4 February 2024 (UTC)

✓ Done by Lucas Werkmeister. --Ahecht (TALK
PAGE
) 23:43, 4 February 2024 (UTC)

Translingual tag

It would be useful to have a translingual tag for New Latin name of species, similar to {{En}} or {{Fr}}, in {{Information}}. An example here.-- Carnby (talk) 07:31, 5 February 2024 (UTC)

Tech News: 2024-06

MediaWiki message delivery 19:20, 5 February 2024 (UTC)

Api that returns the file ids

I am looking for an api that can give ids of all the file revisions of a page. If the file page has multiple file uploads, I would like to get ids of all. So far I could only find API:Filearchive api that can return ids of all deleted pages but I am looking for a similar api that can return files that are not deleted. Sreejith K (talk) 21:56, 6 February 2024 (UTC)

@Sreejithk2000: mw:API:Imageinfo will return all versions of a file. I don't think each version has an ID though. In the database, the filearchive table has an ID column, but the oldimage table doesn't. --bjh21 (talk) 00:04, 7 February 2024 (UTC)
Thank you @Bjh21 -- Sreejith K (talk) 04:56, 8 February 2024 (UTC)

Tech News: 2024-07

MediaWiki message delivery 05:46, 13 February 2024 (UTC)

Request for comments about my recent uploads.

Hi, Just added three drawings linked here.
JPG
PNG
XCF My XCF files were produced by GIMP 2.10. Not supported currently; hopefully the constraint will be removed sooner rather than later. =8~)

The upload process has changed since my previous uploads. Any comments or suggestions before I add more drawings? Thanks, ... PeterEasthope (talk) 04:43, 14 February 2024 (UTC)

Thanks for these. But as to formats, I think the JPG alone is enough. They're primarily document scans, and their context as documents rather than just designs is important too. I can't see the XCF, even the bitmap previews of it. But I don't se a big advantage to having these in a vector form, or even that a full 3D CAD model would be worth the effort of drawing them. Andy Dingley (talk) 20:44, 14 February 2024 (UTC)
Yes, XCF is the most questionable. Perhaps I should request deletion of those.
Doesn't the official image documentation recommend PNG when available. The primary benefit of JPG is the smaller size. Will review the documentation. Thx, ... PeterEasthope (talk) 03:26, 16 February 2024 (UTC)

Tech News: 2024-08

MediaWiki message delivery 15:34, 19 February 2024 (UTC)

Protection not showing correctly

When I go to File:Dự thảo Bảng lương Quân nhân chuyên nghiệp Việt Nam năm 2021.jpg, it says "This page is currently protected, and can be edited only by administrators". However, when I click "view source", it then state that the file is actually template protected, not fully protected. This issue only seems to affect files with autopatroller or template protection. —Matrix(!) {user - talk? - useless contributions} 16:55, 19 February 2024 (UTC)

Patrol interface changed?

I just noticed that the links that I normally see when viewing unpatrolled diffs seem to have disappeared. When viewing a new page the link shows as usual. Have the revision-patrol links moved, and I’m just not seeing them, or might a gadget or something be interfering with their display? (I haven’t changed any preferences recently.)—Odysseus1479 (talk) 04:14, 15 February 2024 (UTC)

Hi, It seems there is bug when patrolling edits since this morning (CET). Example: this edit doesn't seem to be patrolled (i.e. not in the log [22]), but it can't be patrolled, and the user is not autopatrolled. Yann (talk) 16:32, 15 February 2024 (UTC)

Since it was reported by at least 2 persons, I made a bug report. Yann (talk) 16:49, 15 February 2024 (UTC)
Can confirm this, also in RTRC. GPSLeo (talk) 16:59, 15 February 2024 (UTC)
I note that the red exclamation-marks that indicate unpatrolled edits in my watchlist are still showing, so the problem is apparently not that the edits are failing to be identified by the software, occurring instead during the construction or presentation of diff pages.—Odysseus1479 (talk) 21:42, 15 February 2024 (UTC)
This seems to be fixed despite no one commented at the Phabricator ticket. GPSLeo (talk) 08:05, 18 February 2024 (UTC)
No, the bug is still here for me. Yann (talk) 16:46, 18 February 2024 (UTC)
Me too. In case it helps anyone from Phabricator who may be reading this, I’m in Safari 17.3 / MacOS 13.6 using the Vector legacy (2010) skin. I might try other skins (although I don’t know what the patrol link usually looked like in them); will report back if any difference is seen.—Odysseus1479 (talk) 01:24, 21 February 2024 (UTC) P.S. Tried all the skins: the links do appear in MinervaNeue. Twice in fact, one in the usual place under the ES &c. and one at the bottom of the page. (I have my preferences set not to display pages under diffs.) But missing from all the others AFAICT. (I tried turning off a couple of Gadgets in Vector; no difference.)—03:01, 21 February 2024 (UTC)
Does adding the following code to User:Odysseus1479/vector.css fix the issue for you?
.patrollink.patrollink-diffonly { display: block; }

Jdlrobson (talk) 04:22, 21 February 2024 (UTC)

@Jdlrobson: it does indeed; thank you very much!—Odysseus1479 (talk) 06:03, 21 February 2024 (UTC)
Thanks for the extra information. I'll feed that back to the ticket tomorrow and work out what happened here to find a better long term solution. Jdlrobson (talk) 06:06, 21 February 2024 (UTC)

How to solve the problem that videos uploaded using video2commons lack normal audio

I recently uploaded a Flickr video using video2commons, but the audio was missing after uploading it several times. How to solve it?The target file is File:Freezing rain (20240220).webm, and the video source link is [23]. Fumikas Sagisavas (talk) 06:24, 21 February 2024 (UTC)

what do you mean by normal audio? i played it on commons and flickr for a few seconds. they sound the same. upload appears successful? did you turn on your loudspeaker, etc.? RZuo (talk) 09:12, 21 February 2024 (UTC)

More worthless structured data?

Does Structured Data still matter, or have we given up on it?

There's a new tool out there, and it (once again) seems to be focussed on diluting the usefulness of any Structured Data that's held in favour of the trivial and pointless. Is this (again!) the direction we want to be going in?

File:Avenue des Champs-Elysées from top of Arc de triomphe Paris.jpg is a major landmark in Paris. There are clear topics of significance here. But what do we have instead? 'Arc de Triomphe' (which isn't here) and 'road, tree, building', which sound like an example case from a text on 'How to categorize things in a way that's not incorrect, yet also quite useless'.

Or taking a historically significant photo like File:Crowds of French patriots line the Champs Elysees-edit2.jpg with the useful and relevant data 'Arc de Triomphe' (yes, it is), 'Liberation of Paris' (yes, although maybe we could be even more specific), 'M3' and 'M8' (horribly ambiguous as names, although the QIDs are much better. But then adding 'sky, human, tree' to it ?

What is the point to any of this? SD is largely useless to start with, but why do we keep building projects like this to make it worse? Andy Dingley (talk) 13:15, 21 February 2024 (UTC)

Image timeouts

Hi, during browsing I'm getting a lot of timeouts trying to load images from Wikimedia servers on en.Wikipedia and wikimedia.org. For the last few days. Any advice? It's intermittent, but when it's out it's out. Temerarius (talk) 23:08, 22 February 2024 (UTC)

All videos uploaded in the last week lack audio

Hello! All videos uploaded in the last week lack audio, despite the audio can be downloaded in the mp3 transcode. You can check this here. Theklan (talk) 14:41, 23 February 2024 (UTC)

Thank you for asking the question here, I need help too on this subject! My video , File:Wikimania - The Wikimentary - Edited.webm , does not display sound when viewing in a thumbnail; It does have the mp3 Transcode, though, and also, when I search for it in the search bar, the "preview" played does have audio with it!
Blocktomo (talk) 15:36, 24 February 2024 (UTC)

Broken PNG

Is there any way to know what is broken about this file? It cannot display a thumb or at full or other resolution. But I cannot even download it to try to work on it locally. DMacks (talk) 22:47, 24 February 2024 (UTC)

The uploader uploaded File:Photo of a TLC plate Baclofen.tif minutes later, so my guess is that it's the same image. The Squirrel Conspiracy (talk) 23:27, 24 February 2024 (UTC)
Makes sense. DMacks (talk) 23:28, 24 February 2024 (UTC)
(Edit conflict) @DMacks: I believe that was a lossless JPEG, from a version of the standard that’s not widely supported outside of medical imaging. FWIW the original file displayed in my browser, and when downloaded could be opened in Apple Preview (but not in Adobe Photoshop).—Odysseus1479 (talk) 23:44, 24 February 2024 (UTC)
Crazy! I was also using Apple (Firefox), since I have better tools on my Mac for handling a range of situations like that, but couldn't even get as far as downloading it. Thanks for the info. DMacks (talk) 23:49, 24 February 2024 (UTC)
Safari here, fairly recent. I just tried it on a much older Mac, where it couldn’t be opened with any of Safari, Preview or GIMP. (Too late to check download-ability from there.)—Odysseus1479 (talk) 00:11, 25 February 2024 (UTC)
@Odysseus1479: I've undeleted it. Is it possible for you to download the file and save it as a different format of jpg? Alternatively, can you confirm that it's identical to File:Photo of a TLC plate Baclofen.tif? Thanks! The Squirrel Conspiracy (talk) 02:29, 25 February 2024 (UTC)
@The Squirrel Conspiracy: ✓ Done and linked to the (presumably) losslessly compressed TIFF, for anyone who cares, not that there’s any appreciable difference in quality for such a ‘fuzzy’ original. While I was at it I cropped off the white border.—Odysseus1479 (talk) 03:30, 25 February 2024 (UTC)
Awesome, thanks! The Squirrel Conspiracy (talk) 04:49, 25 February 2024 (UTC)

Commons mobile phone app – problems with setting author name

Hi there.

I have some problems with setting an author name to the files I upload from the Commons app I downloaded from F-Droid. I found the "Custom author name" setting, but no matter what value I try to set, I'll never get the result I want.

What I want to achieve: Link to my user page masked as my full name (like this: Jan Štěch, for example on File:Jasan u Milešic 01.jpg).

What I tried:

Any ideas what do I need to set in there?

Thanks in advance. ShadyMedic (talk) 17:21, 24 February 2024 (UTC)

@ShadyMedic: it appears that the app is automatically wrapping your entry in a user link. What happens if you submit ShadyMedic|Jan Štěch, without the brackets or User:?—Odysseus1479 (talk) 00:01, 25 February 2024 (UTC)
Hi Odysseus, thank you for your reply. I tried setting the Custom author name to ShadyMedic|Jan Štěch, result of which is another unwanted formatting, which you can see on File:Dálnice D3 – Konec u Českých Budějovic.jpg
.
Do you have any other ideas? ShadyMedic (talk) 16:47, 25 February 2024 (UTC)
Sorry, no—other than not using the setting, instead making follow-up edits to ‘pipe’ your name. Looking more carefully at the examples it seems to be just duplicating whatever you submit, which seems to me either a bug or a design flaw.—Odysseus1479 (talk) 03:27, 26 February 2024 (UTC)
Nevermind, still thanks. Just one more question: is there a tool on Commons or perhaps a bot of sorts where I can request to set the Author value of all my uploads to the desired value, so it's done automatically? ShadyMedic (talk) 08:23, 26 February 2024 (UTC)
i suggest you report this to https://github.com/commons-app/apps-android-commons/issues .
as for a manual patch after upload, you can DIY with com:vfc com:jwb etc. RZuo (talk) 08:43, 26 February 2024 (UTC)

CommonsDelinker

Hi, CommonsDelinker is stuck since 09:06, 23 February 2024. Could someone restart it? Thanks, Yann (talk) 11:40, 26 February 2024 (UTC)

Tech News: 2024-09

MediaWiki message delivery 19:20, 26 February 2024 (UTC)

Using translate tags in Lua

{{POTY/header}} has a lot of complicated logic so I'm working on implementing it in Lua at Module:POTY/header, but judging from {{POTY/header/sandbox}}, it seems the <translate> tags are being stringified too early. How can I fix this? —CalendulaAsteraceae (talkcontribs) 22:43, 21 February 2024 (UTC)

@CalendulaAsteraceae: <translate> tags are for wikitext, they cannot be used in modules. (Under the hood, the Translate extension directly manipulates the page’s wikitext content, it’s not a real parser tag, and refuses to manipulate anything that’s not wikitext, to be on the safe side.) You have basically two options:
  • Keep {{POTY/header}} (which you’d probably do anyway) and pass the translatable strings as parameters to the module. This also has the advantage that existing translations can stay where they are, no need to copy translations over (and pay attention to the attribution required by the CC license).
  • Use message bundles. This is a JSON-based format, designed for use in modules, but it’s pretty new, I couldn’t even find any useful documentation on it. (It’s mentioned at mw:Translatable modules/Technical implementation#Proposed solution: Message bundles on module subpage(s), but that page hasn’t been touched in over three years.)
By the way, Module:POTY/header is currently almost twice as big (in terms of bytes) as Template:POTY/header. Does it really make sense to reimplement it in Lua? Much of the complexity comes from HTML and translation markup – HTML is even more complicated in Lua than in wikitext, translation is impossible. —Tacsipacsi (talk) 23:24, 25 February 2024 (UTC)
Thank you! I'll try passing the translatable strings to the module and see if that's notably better than the current state of affairs. If so, great; if not, I'll either leave things as they are or investigate message bundles. —CalendulaAsteraceae (talkcontribs) 04:28, 29 February 2024 (UTC)

The current pipeline for uploading images through Flickr is completely broken.

At present, the pipeline for uploading pictures and videos through Flickr has been completely damaged. After uploading, it stays at "Submitting details…". Please repair it as soon as possible. Fumikas Sagisavas (talk) 23:27, 21 February 2024 (UTC)

The phab task https://phabricator.wikimedia.org/T358414 which seems to be the same issue was resolved yesterday. Can you if check this works for you now please? CParle (WMF) (talk) 15:02, 29 February 2024 (UTC)
@CParle (WMF): Seems to be working fine. Thanks for the fix. --Ser Amantio di Nicolao (talk) 17:57, 29 February 2024 (UTC)
Yay. -- Infrogmation of New Orleans (talk) 20:54, 29 February 2024 (UTC)

Old map does not open

While categorizing the files in Kolkata, I found that the image City of Calcutta (10403000).jpg doesn't open. I have a good internet connection and other files load properly, but this one doesn't. I suspect that it is an old map of Kolkata since it is categorized under Old maps by the Survey of India and David Rumsey Historical Map Collection. Sbb1413 (he) (talkcontribs) 11:13, 27 February 2024 (UTC)

@Sbb1413: it seems fine to me, just extremely large. It expands to well over 2 GB, and it took my browser quite a long time to display, even after having loaded it, so it’s probably overwhelming the renderer, perhaps timing out. The description & categorization seem quite apt already, but if you have specific questions about what it shows I can try and answer them based on the copy I downloaded. I could also try downsampling to a more manageable format for reference (to be uploaded separately, of course, and linked).—Odysseus1479 (talk) 20:53, 27 February 2024 (UTC)
I uploaded a version with reduced resolution and colour depth (down to 150 Mpx, losslessly compressed to 67 MB), but still a decent representation (if I say so myself). @Sbb1413: I put a link on the original page so there’s a mini-thumbnail at least.—Odysseus1479 (talk) 00:32, 5 March 2024 (UTC)
Thank you for this. I was wondering what the image was about, and I found that it is an old map of Kolkata. Sbb1413 (he) (talkcontribs) 02:44, 5 March 2024 (UTC)