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

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; the latest archive is Commons:Village pump/Technical/Archive/2021/10.

COMMONS DISCUSSION PAGES (index)
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.

Compressed pattern matching tools on gzip or lzma[edit]

commonswiki-20210920-all-titles.gz is 900MB. I found FCPM but this doesn't support gzip. Are there tools that support gzip, lzma or any common file type? Crowley666 (talk) 10:06, 26 September 2021 (UTC)

@Crowley666: I'm not sure if this is quite what you're looking for, but zgrep from GNU Gzip can search through gzipped files without decompressing them and xzgrep/lzgrep from XZ Utils can do the same for XZ and LZMA compressed files. clpo13(talk) 21:28, 18 October 2021 (UTC)

Tech News: 2021-42[edit]

20:52, 18 October 2021 (UTC)

Coolest Tool Award 2021: Call for nominations[edit]

Coolest Tool Award 2021 square logo.svg

The third edition of the m:Coolest Tool Award is looking for nominations!

Tools play an essential role for the Wikimedia projects, and so do the many volunteer developers who experiment with new ideas and develop and maintain local and global solutions to support the Wikimedia communities. The Coolest Tool Award aims to recognize and celebrate the coolest tools in a variety of categories.

The awarded projects will be announced and showcased in a virtual ceremony in December. Deadline to submit nominations is October 27. More information: m:Coolest Tool Award. Thanks for your recommendations! -- SSethi (WMF) for the 2021 Coolest Tool Academy team 05:57, 19 October 2021 (UTC)

North London Regent's Canal[edit]

On advice I am reposting this, and the reply from Commons:Village_pump#North London Regent's Canal ClemRutter (talk) 11:39, 19 October 2021 (UTC)

Regent's Canal Heron at 7 Acton's Lock 1171.jpg

A silly basic question. From a Lumix, I tried to upload a batch of scenes along the north London Regent's Canal quickly using Upload Wizard. All are geotagged in the exif. Upload Wizard did not transfer the Latitude and Longitude from the exif into the Location fields. Look at the image- and there is no geotag in the description. Download the image to your local PC, right click on properties/image and there it is -the original geotag. The data is there but not displayed or displayable on the server. I tried it again on my Nikon and it did the same. Why? Is this a feature? Is this on someones to-do list? ClemRutter (talk) 18:21, 18 October 2021 (UTC)

@ClemRutter: it does look like a bug; I can verify that there are “Camera Location” data in the image file, visible in Photoshop and Apple Preview for example, that do not even appear in the metadata box on the file page, let alone getting read into the info template (which I wouldn’t necessarily expect). COM:VPT might be a better place to ask if this is symptomatic of a known issue (or simply an absent feature), or to get a bug report made at Phabricator.—Odysseus1479 (talk) 21:58, 18 October 2021 (UTC)

Cheers ClemRutter (talk) 11:39, 19 October 2021 (UTC)

@ClemRutter This is a known bug (T223051) and the underlying cause seems to be an issue in the version of PHP that Wikimedia is currently running (T240509). Work is underway to update to PHP 7.4 (T271736) which should hopefully fix this as a byproduct, although it will take some time. the wub "?!" 23:10, 25 October 2021 (UTC)

Module:Countries/North America[edit]

Is there any way to fix the module to make it show up on Category:Women of the United States in the 2010s? --Trade (talk) 00:54, 23 October 2021 (UTC)

Right now the only way to make it show up is to change {{WomenDecadebyCountry|20|10|21st|the United States}} to {{WomenDecadebyCountry|20|10|21st|United States}} which breaks the categories generated by the template. --Trade (talk) 00:55, 23 October 2021 (UTC)
No, an extra parameter allows to add the definite article only where it’s needed. Its behavior was not entirely consistent, but it was easy to fix. (Actually the content of this parameter doesn’t matter, {{WomenDecadebyCountry|20|10|21st|United States|foobar}} would also result in “the” being displayed, I just chose the to make the source code easier to understand.) —Tacsipacsi (talk) 10:55, 3 November 2021 (UTC)

Tech News: 2021-43[edit]

20:06, 25 October 2021 (UTC)

photos of Emmanuel Macron and Jesse Jackson[edit]

I searched for "Emmanuel Macron in Africa" expecting to see photos of the French president in Africa. Instead I see photos of Jesse Jackson. Can this be fixed? — Preceding unsigned comment added by Megaugust (talk • contribs) 15:42, 26 October 2021 (UTC)

Redirect can't be deleted[edit]

Hi, I can't delete this redirect (mispelling): https://commons.wikimedia.org/w/index.php?title=File:Landscape_at_Saint-Andr%C3%A9,_Near_Marseilles,_by_Paul_Guigou_,Cleveland_Museum_of_Art,_1980.265.jpg&redirect=no Any idea? Yann (talk) 21:32, 29 October 2021 (UTC)

See phab:T293980. Dylsss (talk) 23:22, 29 October 2021 (UTC)
Again here: https://commons.wikimedia.org/w/index.php?title=File:Ggffhfbgdgd.jpg&redirect=no Yann (talk) 11:50, 30 October 2021 (UTC)
Yes, it seems to happen for any redirect in the file namespace. Dylsss (talk) 15:36, 30 October 2021 (UTC)
Looks like you can delete if you change the redirect to some normal text. —‍Mdaniels5757 (talk • contribs) 18:10, 30 October 2021 (UTC)
OK, not very convenient, but that's a temporary solution. Yann (talk) 15:04, 31 October 2021 (UTC)

Image download links[edit]

Hello! Back in 2014, we created a functionality as part of the Media Viewer project, where file / thumbnail URLs can be turned into download URLs by adding ?download to the end. (You can see how it works: normal vs download, try left-clicking. From a technical perspective, the edge cache rewrites it into the canonical URL and adds a Content-Disposition: attachment header to the response.) During a recent conversation I realized that the various community-built download tools (such as the stockphoto gadget) don't use this functionality, so I figured I'd suggest it for your attention. Tgr (WMF) (talk) 22:49, 29 October 2021 (UTC)

Unable to upload 10 MB image[edit]

I am trying to upload an image very similar to File:Shelburne Falls October 2021 001.jpg using Upload Wizard. It was taken with the same camera (Nikon D750) and processed using the same software (Lightroom 5.7.1), with the only difference being that the file is slightly bigger (10.0 MB). When I try to upload, it starts with an "Uploading..." screen and the progress bar moves along, but then it goes to "Queued..." and hangs forever. I have tried multiple different versions of Upload Wizard, including the WLM campaign as well as the regular Special:UploadWizard. -- King of ♥ 23:31, 29 October 2021 (UTC)

I got it to upload: File:Shelburne Falls October 2021 008.jpg. However, still worth a postmortem on why it was consistently failing for approximately the hour before my original post. -- King of ♥ 02:10, 30 October 2021 (UTC)
  • Pictogram voting comment.svg Comment I am sometimes also unable to upload big files, the last exemple is my last upload, the original size was more than 5000*7000px but I never managed to upload it without a reduction of the size. I have aslo issues when I upload new versions of big files, e.g. File:Pont du Vialais.jpg that you know, if I remember well, after several attempts I did not manage to update the file so I had the idea to upload the new version(s) on my Flickr account and then to upload from Flickr to here.... and surprise... the transfert from Flickr to here only took a few seconds... This is very frustrating. Christian Ferrer (talk) 06:59, 30 October 2021 (UTC)

PD-US-no notice with pre-1926 files[edit]

There are files with works which were first published before 1926, but they are licensed as {{PD-US-no notice}}, which says that the work was published between 1926 and 1977, which is quite confusing. This happens because the year in the license template is automatically changed anually. An example is File:Greta Garbo 1925 by Genthe.jpg, where the license made sense when it was uploaded in 2007, but does not make sense anymore. I think that in files with works which slip out of the applicability of this license it should be automatically changed for {{PD-US-expired|US}}. --Jan Kameníček (talk) 21:57, 31 October 2021 (UTC)

Yes, this replacement looks like a sensible approach to me. We should have a bot handle this issue. De728631 (talk) 22:58, 31 October 2021 (UTC)
@De728631 and Jan.Kamenicek: I don't think a bot can handle this because the date on files is often malformed or represents the date of creation - since the {{PD-US-expired}} is based on the date of publication, there's no easy way to do a mass change.  Mysterymanblue  23:58, 31 October 2021 (UTC)

Tech News: 2021-44[edit]

20:26, 1 November 2021 (UTC)

MassRename files under Category:Saint Michael wooden church in Hincăuți, Edineț[edit]

Please someone with mass rename capability, replace Hiliuți with Hincăuți in all the filenames. And let me know what's a better place to ask for MassRename. Gikü (talk) 20:27, 2 November 2021 (UTC)

Viral vaccines vs antiviral vaccines[edit]

There seems to be a disconnect between the description of what a "viral vaccine" is, and how the category is being used. category:Viral vaccines is being used for vaccines against viral diseases, because it contains category:COVID-19 vaccines (which itself contains recombinant vaccines, viral vector vaccines, etc) but the description of the the category, provided by the wikidata box says that the category is to be used for vaccines composed of attenuated or inactivated viruses, which is a distinctly different matter. This is not the same as protecting against a viral disease, since subunit vaccines, recombinant vaccines, viral vector vaccines, can all be used to protect against viral diseases but are not themselves "viral vaccines" in the matter the Wikidata infobox proposes. category:Antiviral vaccines would seem to be the logical name for vaccines protecting against viral diseases. That category is being redirected to viral vaccines, which does not seem to be compatible with the function of hosting vaccines that fight viral diseased, which may not be any sort of "viral vaccine" as proposed by the infobox. -- 64.229.90.53 02:25, 5 November 2021 (UTC)

I was the one who redirected the new category to the existing one. I did not realize the intended distinction between the two categories. Because the same issue arises with category:Bacterial vaccines and other categories, resolving the issue may take some additional renaming and/or reorganization within the subcategories of Category:Vaccines, beyond just restoring the redirected category - maybe two separate trees which make distinctions between vaccines by target and vaccines by type. I suggest Commons:Categories for discussion as the appropriate venue for that discussion. Marbletan (talk) 13:00, 5 November 2021 (UTC)

how many categories do we have (regular ns only)[edit]

starting with Category:CommonsRoot top down? Greetz, --Mateus2019 (talk) 21:52, 5 November 2021 (UTC)

Link blocked by spam filter, but why?[edit]

This link:

  • http://web.archive.org/web/20211106133750/https://educatie-en-school.infonu.nl/taal/108413-groningse-taal-woorden-en-zinnen-in-de-taal-uit-het-noorden.html

was blocked by the spamfilter, which is odd as it's an educational website. So my question is, where and how can I find out why a website was blocked. As what websites are and aren't blocked usually seems completely arbitrary and no reason is ever given by the filter, perhaps it would be wise if the filter would also inform users why a website was added to the blacklist in the first place, for example is this website unreliable? Did they pay someone to put their links on Wikimedia websites? Was it added for any other reason? It just says "link blocked" and nothing more. --Donald Trung 『徵國單』 (No Fake News 💬) (WikiProject Numismatics 💴) (Articles 📚) 13:48, 6 November 2021 (UTC)

@Donald Trung It was blocked globally on Meta; see m:Spam blacklist. For their reasoning, see [4], [5], and [6]. —‍Mdaniels5757 (talk • contribs) 16:08, 6 November 2021 (UTC)

Photo display and print problem. File:180115 아육대 출근길 드림캐쳐 지유 1.jpg[edit]

Categories are well displayed and printed, but there is a problem that they are not printed in the file document and cannot be displayed.

The File History paragraph is the same phenomenon. I think we need to fix this problem on the 180115 아육대 출근길 드림캐쳐 지유 1.jpg

I hope this problem can be solved due to technical problems. Takuyakoz (talk) 11:55, 8 November 2021 (UTC)

Tech News: 2021-45[edit]

20:34, 8 November 2021 (UTC)

Kyivstar[edit]

Is it possible to set a one-year limit for this Ukrainian mobile operator due to frequent vandal photo uploads? --Jphwra (talk) 12:55, 9 November 2021 (UTC)

@Jphwra: I don’t know if it would be technically possible (there’s an upper limit on how many IP addresses can be blocked with one block), but blocking a whole operator of a country having a 40M population for a year is certainly not acceptable from a community point of view. —Tacsipacsi (talk) 16:40, 10 November 2021 (UTC)

Auto-fill not working[edit]

When I start to type Filename into the search box (File:...), the auto-fill doesn't occur. When the exact name is given, I get to the page, but entire name has to by typed. Can anyone reproduce this? — Draceane talkcontrib. 15:11, 10 November 2021 (UTC)

This is because searching for files is currently not working. Dylsss (talk) 15:48, 10 November 2021 (UTC)

Cropping to show specific subjects[edit]

Figure skating pair Wang Huidi and Jia Ziqi.

Recently I have been cropping a lot of pairs of figure skaters to show the individual skaters. For example, the only photo we have of Wang Huidi or Jia Ziqi is the one shown here. At least it was, until I cropped it twice: once to focus on Ziqi and once to focus on Huidi. Also, the skaters' Wikidata items (Q60253443 and Q60253378), and therefore the categories Jia Ziqi and Wang Huidi's infoboxes, had no images at all. This is a good example, but there are many others.

Generally, each skater has their own category and their own Wikidata item. Many photos also mention both skaters in the description. And experience has shown that purging is often necessary. Therefore, each crop generally involves the following steps:

  1. Use CropTool to crop "A and B" so that it focuses on A, appending " - A" to form the new filename.
  2. Edit the new file's description to remove the reference to "B".
  3. Edit the new file to remove the category "B".
  4. Edit the new file's structured data to add "depicts: A".
  5. Edit the Wikidata item for "A" to include the relevant image(s) (the crop, and the original image showing the pair, if not already present).
  6. Purge the category, if necessary, to verify that its infobox displays correctly.

There are some obvious opportunities for automation here. This might be easier said than done. But surely steps 4-6 can be combined into a single step? Brianjd (talk) 03:30, 11 November 2021 (UTC) edited 04:08, 11 November 2021 (UTC)

FYI: mw.wikibase.mediainfo (Lua) works now[edit]

Just leaving a quick note here that mw.wikibase.mediainfo (documented at mw:Extension:WikibaseMediaInfo/Lua) works in Lua now. (Previously, it was nil due to an obscure bug.) As far as I’m aware, nobody noticed that it was broken (or at least, nobody complained in any places that I could find), but if you want to start using e.g. mw.wikibase.mediainfo.getCaptionByLang() instead of mw.wikibase.getLabelByLang(), now you can :) --Lucas Werkmeister (WMDE) (talk) 10:54, 12 November 2021 (UTC)

Incomplete upload logs[edit]

I was trying to investigate the claim that these files were uploaded by an administrator:

So I looked in their logs. But in each case, the oldest entry (in November or December 2007) is for the upload of a new (supposedly improved) version. I have no information about the original uploads. Why is this? Brianjd (talk) 09:10, 14 November 2021 (UTC)

Related DR: Commons:Deletion requests/Files in Category:Panty lines. Yann (talk) 11:22, 14 November 2021 (UTC)

Tech News: 2021-46[edit]

22:05, 15 November 2021 (UTC)