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

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

Can someone pl. check this file and throw out d:Q29648480 of there (why is it transcluded anyway?) Thanks, --Mateus2019 (talk) 12:32, 24 March 2024 (UTC)

Changed inscription format. Removed d:Q29648480 from structured data.
Glrx (talk) 15:45, 24 March 2024 (UTC)
Great! Mateus2019 (talk) 17:01, 24 March 2024 (UTC)
Many thanks to both of you--Oursana (talk) 19:53, 24 March 2024 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Glrx (talk) 20:21, 24 March 2024 (UTC)

Report request

Hello! Can someone please generate a list of files (ideally hyperlinked or in a gallery) that meet the following criteria:
1) The file page contains {{Remove border}}
2) The most recent upload contains the text "using CropTool"
This should allow me to quickly review requests for crop that have already been completed, as CropTool didn't remove that template during its early history. Thanks! The Squirrel Conspiracy (talk) 12:13, 1 March 2024 (UTC)

translation

hi, i want to translate the village pump and welcome in punjabi language (pa), that appears in the sidebar. Punjabi translations of these are

  1. Village Pump - ਸੱਥ
  2. Welcome - ਜੀ ਆਇਆਂ ਨੂੰ

KuldeepBurjBhalaike (Talk) 13:10, 2 March 2024 (UTC)

This relates to MediaWiki:Sidebar and its Punjabi language interface. Our Village Pump doesn't appear to have a Punjabi language variant, but COM:Welcome (See {{Lang-VP}}) has an attempted little translation at Commons:ਜੀ ਆਇਆਂ ਨੂੰ. You'd need to adopt the Village Pump at Commons:ਸੱਥ (by attempting Village Pump's Punjabi language translation), and for Welcome, I believe I have set-up the messages at MediaWiki:Welcome/pa and MediaWiki:Welcome-url/pa. It should appear on the interface. Please let me know if this helps. ─ Aafī (talk) 14:23, 2 March 2024 (UTC)
Thank you :) KuldeepBurjBhalaike (Talk) 11:39, 3 March 2024 (UTC)

Notification of discussion

Hello, Template talk:GPLv3 has had a merge discussion for a year and a bit now, and has seen little activity. Please help contribute to the discussion. Thank you, —Matrix(!) {user - talk? - contributions} 12:14, 3 March 2024 (UTC)

Tech News: 2024-10

MediaWiki message delivery 19:44, 4 March 2024 (UTC)

Automatically Counting Images in Section

Is there a way to automatically count the number of files in a page section and have it displayed somewhere on the page? I have a gallery section with a number of subsections on my userpage and for reference purposes it would be useful to have a way to know how many files are in each section without having to manually count them. –Noha307 (talk) 00:57, 5 March 2024 (UTC)

You seem to use {{Gallery}}. It’s technically possible to expand the template to support your use case, although I’m not sure if it’s worth making a template used on thousands of pages more complicated just because of one page. —Tacsipacsi (talk) 09:58, 5 March 2024 (UTC)
you could adapt w:Module:Table row counter for this. Enhancing999 (talk) 10:01, 5 March 2024 (UTC)

The 5MB bug

Last Wed I fixed a bug (phab:T350917) where files uploaded with chunked uploads would have their last chunk missing (Often called the 5MB bug because upload wizard uses 5MB chunks, so usually such files are a multiple of 5MB). This is not the first time this bug has been fixed, but I'm hopeful this fix is a bit more robust. So far no new files with this issue have been uploaded, where previously we were averaging about 2 a day. Anyhow, the reason I'm writing here is there are a bunch of files that are cut-off from before the fix went in. I'm not sure if someone wants to tell their authors, or delete them, or something. There is a list at https://quarry.wmcloud.org/query/80784# (Its possible there could be false positives on this list, but it seems like most are true positives). Bawolff (talk) 05:18, 5 March 2024 (UTC)

thx a lot for fixing it.
a few years ago such files have been added to Category:Incomplete JPG files (5 MB interruption). more recent buggy uploads over the last few years can be added to this too, ideally simultaneously with a reminder sent to their user talk pages.--RZuo (talk) 09:42, 5 March 2024 (UTC)

SDC duplicator?

is there a tool to copy sdc from 1 file to another file? use is for croptool uploads like File:Meiji Chelsea Yogurt Scotch 2011.jpg. RZuo (talk) 09:47, 5 March 2024 (UTC)

How to exclude redirects in search results?

https://commons.wikimedia.org/w/index.php?search=intitle:%22add+name+later%22 . i tried -insource, filesize, linksto, hastemplate. nothing works.--RZuo (talk) 09:42, 5 March 2024 (UTC)

This is a discussion on the topic that might be helpful. —CalendulaAsteraceae (talkcontribs) 21:33, 10 March 2024 (UTC)

Background not showing up in SVG previews

For some reason the background is not showing up correctly in SVG files I recently uploaded, e.g. File:Finnish dialect location map - southwestern dialects.svg (and 6 others). They're supposed to have the water (light blue) as the background, and it shows up correctly when I open the SVG file in my browser, but not in any of the generated previews, where it is either transparent or solid black. I think it is an issue in the SVG file, but I'm not sure what it is. — SURJECTION / T / C / L / 15:23, 10 March 2024 (UTC)

@Surjection:
The background is created with
<rect class="sea background" width="960" height="1558" rx="" ry=""/>
Which is not supplying a number for rx or ry. I removed the attributes and the sea appears.
The class information is also conflicting. The "sea" wants to be stroked, but the "background" does not.
Glrx (talk) 01:50, 11 March 2024 (UTC)

Tech News: 2024-11

MediaWiki message delivery 23:02, 11 March 2024 (UTC)

TimedText select list loss

There is no Montenegrin language (crnogorski cnr) in select language list of TimedText pages. how to fix this? ITZQing (talk) 11:02, 12 March 2024 (UTC)

you need to write on phab:. you can make one for your language like phab:T354201. RZuo (talk) 12:55, 12 March 2024 (UTC)

Lossless crop assistance

File:MartzAction41A-1-.PNG has specific cropping instructions that I have never seen before with suggestion for lossless tools. I would like assistance in cropping this into 4:3 (630px wide) and/or 3:2 (560px wide) proportions using such a tool.-TonyTheTiger (talk) 11:16, 14 March 2024 (UTC)

That file is a png, so cropping with pretty much any tool is going to be lossless. I assume that is why the template limits its recommendations for lossless tools with the note "if cropping a JPEG...". —RP88 (talk) 11:22, 14 March 2024 (UTC)
I have extracted with Photo. What do I need to do regarding the metadata to follow the instructions?-TonyTheTiger (talk) 13:13, 14 March 2024 (UTC)
I think you've already done it. Since the "copy this file metadata" link is just an edit link for the source file, I am pretty sure the template just wants to make sure you copy the contents of the {{Information}} from the source file to the new file. One quibble I would have is that the request was to "Crop to show the woman with the ball" but your cropped file shows both women. I think the goal of the requestor is to have a image of just Jennifer Martz that can be used at d:Q6178597 where it is not ambiguous as to which of the two women in the original image is Jennifer Martz. —RP88 (talk) 13:38, 14 March 2024 (UTC)
User:RP88, Notice that my crop removed a front facing teammate of Martz'. I think that would be the more important secondary subject to worry about. I think considerations of the backward facing person are less relevant.-TonyTheTiger (talk) 00:04, 15 March 2024 (UTC)

Tech News: 2024-12

MediaWiki message delivery 17:37, 18 March 2024 (UTC)

Logging usage of ajax quickdelete.

When using the speedy request in auditor, it generates a report in a log file, I was wondering how I could make a similar log for ajax quick delete CSD requests. Alachuckthebuck (talk) 20:15, 21 March 2024 (UTC)

"According to Exif data"

I have just discovered the According to Exif data and in the talk page, the user @Arnd had an interesting idea: to use a bot which will automatically add the EXIF data in the template. Would this be possible? Thanks, Erick Soares3 (talk) 20:12, 22 March 2024 (UTC)

I am running my bot from time to time to add missing dates to the template. To find the files i perform a search like insource:/According to Exif data *\}\}/. Would be nice to have a maintenance category for it. Regards, --Arnd 🇺🇦 (talk) 08:34, 23 March 2024 (UTC)

Tech News: 2024-13

MediaWiki message delivery 18:53, 25 March 2024 (UTC)

Image appears but doesn't appear although appear

Tarapaca Campaign.svg

In es:Guerra del Pacífico the image File:Tarapaca Campaign.svg doesn't appear but in es:Desembarco y combate de Pisagua the image appears. I guess it is some SVG irregularity in the SVG-Format of the image: the last thumbs in its common-history also doesn't appear. Does any one know the reason?. --Juan Villalobos (talk) 11:57, 23 March 2024 (UTC)

Sense of which shows is flipped? Guerra del Pacífico shows the image, but Desembarco y combate de Pisagua does not?
view-source:https://es.wikipedia.org/wiki/Desembarco_y_combate_de_Pisagua has
src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Tarapaca_Campaign.svg/300px-Tarapaca_Campaign.svg.png"
which should link to https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Tarapaca_Campaign.svg/300px-Tarapaca_Campaign.svg.png
That image is good. ?action=purge of the es.Wiki page did not fix it.
Purging on the Commons file page kills the displayed main image (making it match the history thumbs).
Now the image does not display on Guerra del Pacifico.
Loading the PNG directly shows a server error.
At least everything is consistently broken.
Glrx (talk) 05:51, 24 March 2024 (UTC)
And now the PNG link displays and both es.Wiki articles display the image. Glrx (talk) 05:53, 24 March 2024 (UTC)
es:Guerra del Pacífico still doesn't display the image. --Juan Villalobos (talk) 07:33, 25 March 2024 (UTC)
It don't even see it on File:Tarapaca Campaign.svg. Clicking on some of the resolutions gives "Error
Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes.
See the error message at the bottom of this page for more information." Enhancing999 (talk) 09:03, 25 March 2024 (UTC)
At the bottom, among others "Error: 429, Too Many Requests at Mon, 25 Mar 2024". Enhancing999 (talk) 09:03, 25 March 2024 (UTC)
Does not show for me on File page or es:Guerra.
File page fail:
Request URL: https://commons.wikimedia.org/wiki/File:Tarapaca_Campaign.svg
Request Method: GET
Status Code: 304 Not Modified

Age: 0
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
Date: Mon, 25 Mar 2024 15:09:26 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
Report-To: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
Server: ATS/9.1.4
Server-Timing: cache;desc="pass", host;desc="cp1100"
Set-Cookie: NetworkProbeLimit=0.001;Path=/;Secure;Max-Age=3600
Strict-Transport-Security: max-age=106384710; includeSubDomains; preload
Vary: Accept-Encoding,Cookie,Authorization
X-Cache: cp1100 miss, cp1100 pass
X-Cache-Status: pass
On reload, File page succeeds
Request URL: https://commons.wikimedia.org/wiki/File:Tarapaca_Campaign.svg
Request Method: GET
Status Code: 304 Not Modified
Remote Address: 208.80.154.224:443
Referrer Policy: origin-when-cross-origin

Accept-Ch:
Age: 0
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
Content-Encoding: gzip
Content-Language: en
Content-Type: text/html; charset=UTF-8
Date: Mon, 25 Mar 2024 15:16:03 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Last-Modified: Mon, 25 Mar 2024 15:03:33 GMT
Nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
Report-To: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
Server: mw1435.eqiad.wmnet
Server-Timing: cache;desc="pass", host;desc="cp4041"
Set-Cookie: NetworkProbeLimit=0.001;Path=/;Secure;Max-Age=3600
Strict-Transport-Security: max-age=106384710; includeSubDomains; preload
Vary: Accept-Encoding,Cookie,Authorization
X-Cache: cp4041 miss, cp4041 pass
X-Cache-Status: pass
Server ATS/9.1.4 fails but server mw1435.eqiad.wmnet succeeds.
Glrx (talk) 15:26, 25 March 2024 (UTC)

Sorry, I don't get any server error or even an error message. Simply the image doesn't appear in es:Guerra del Pacífico but it appears in other articles. --Juan Villalobos (talk) 16:06, 25 March 2024 (UTC)

It's only visible when clicking on some of the links on the file description page at "Other resolutions: 162 × 240 pixels | 323 × 480 pixels | 518 × 768 pixels | 690 × 1,024 pixels | 1,380 × 2,048 pixels | 875 × 1,298 pixels."
In the meantime, on File:Tarapaca Campaign.svg it's back, but not on the "other resolutions". I wonder how many requests it takes to trigger "Too Many Requests". Enhancing999 (talk) 16:32, 25 March 2024 (UTC)
I just made several different size requests, and all returned good images. All but one were served by Thumbor/7.3.2.
If I load a failing image
Request URL: https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Tarapaca_Campaign.svg/81px-Tarapaca_Campaign.svg.png?20181213201810
Request Method: GET
Status Code: 429 Too Many Requests
Remote Address: 198.35.26.112:443
Referrer Policy: origin-when-cross-origin

Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Age, Date, Content-Length, Content-Range, X-Content-Duration, X-Cache
Content-Length: 1820
Content-Type: text/html; charset=utf-8
Date: Mon, 25 Mar 2024 17:29:25 GMT
Nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
Report-To: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
Server: Varnish
Server-Timing: cache;desc="int-front", host;desc="cp4049"
Strict-Transport-Security: max-age=106384710; includeSubDomains; preload
Timing-Allow-Origin: *
X-Cache: cp4049 int
X-Cache-Status: int-front
This response looks to be a cached error message from Varnish. Refreshing does not update. Using another browser does not update.
Glrx (talk) 17:38, 25 March 2024 (UTC)

Sorry, problem is still there. Can you resolve it?. --Juan Villalobos (talk) 08:37, 27 March 2024 (UTC)

W3C reports 2 errors. Namespace http://www.openswatchbook.org/uri/2009/osb not on whitelist. Used in linearGradient6213 and linearGradient4061. Both are single-stop gradients. Both gradients are unused. Nuked.
File has more than usual Inkscape verbiage. There are a lot of style="...;line-height=0%;...". There are empty g elements.
Still does not display.
Glrx (talk) 18:30, 27 March 2024 (UTC)

rulers

anyone have a handy userscript or gadget to add rulers around the main image on file namespace pages? of particular interest to me would be percent rulers, for aiding the addition of COM:SDC relative position within image (P2677) statements. Arlo James Barnes 00:24, 31 March 2024 (UTC)

Bot for archiving closed cfd requests

https://commons.wikimedia.org/w/index.php?title=Special%3AContributions&target=SteinsplitterBot&namespace=4&wpfilters%5B%5D=associated&tagfilter=&start=&end=2023-12-07&limit=100

SteinsplitterBot (talk · contribs) used to take care of this, but it last archived cfd on 6 dec 2023, so we need a new bot for this task. RZuo (talk) 22:38, 25 March 2024 (UTC)

@RZuo I just fixed SteinsplitterBot. It looks like when they did the migration to the new jobs system they forgot to migrate this one. But it should be working now, and will run daily in the future. Feel free to ping me if it stops, or if you notice any other issues with SteinsplitterBot (I have full access to the tool.) —‍Mdaniels5757 (talk • contribs) 23:15, 25 March 2024 (UTC)
@Mdaniels5757: If you have access to SteinsplitterBot, do you know why it stopped updating Commons:Database reports/Getty Images a few months back? Is there any assistance I could provide to you towards getting this SteinsplitterBot job fixed or restarted? —RP88 (talk) 23:02, 28 March 2024 (UTC)
Looking into this. —‍Mdaniels5757 (talk • contribs) 22:38, 4 April 2024 (UTC)
@RP88 Fixed (it was a combination of the same issue and a broken dependency). —‍Mdaniels5757 (talk • contribs) 00:54, 5 April 2024 (UTC)
@Mdaniels5757: Thanks very much! I appreciate you taking the time to investigate and fix the issue. —RP88 (talk) 02:34, 5 April 2024 (UTC)